[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 350 samba users



Michelle Konzack wrote:

  ____ ( '/home/michelle/bin/make_samba_user' ) _______________________
 /
|  '!/bin/bash
| | for USER in `cat USER_LISTE` ; do
|    echo "[$USER]"                               >> /etc/samba/smb.conf
|    echo "  comment = Automatisch angelegter USER" >> /etc/samba/smb.conf
|    echo "  browseable = yes"                    >> /etc/samba/smb.conf
|    echo "  path = /home/$USER/"                 >> /etc/samba/smb.conf
|    echo "  public = "                           >> /etc/samba/smb.conf
|    echo "  writable = "                         >> /etc/samba/smb.conf
|    echo "  create mode = 0700"                  >> /etc/samba/smb.conf
|    echo "  create mask = 0700"                  >> /etc/samba/smb.conf
|    echo "  directory mask = 0700"               >> /etc/samba/smb.conf
|    echo ""                                      >> /etc/samba/smb.conf
|  done
|  /etc/init.d/samba reload
| \______________________________________________________________________
Nur mal so dumm in die Runde gefragt, gibt es dafür nicht Variablen in der smb.conf?
Ich hab da nur noch folgendes stehen:

[homes]
        comment = Home Directories
        read only = No
        create mask = 0700
        directory mask = 0700
        browseable = No

Damit werden da auch die Homes exportiert und wenn die sich nicht einloggen sollen kriegen die die shell auf /bin/false gesetzt.

--
Bye,
 Patrick Cornelissen
 http://www.p-c-software.de
 ICQ:15885533



Reply to: