apt-get install -y samba samba-common python-glade2 system-config-samba cp -pf /etc/samba/smb.conf /etc/samba/smb.conf.bak cat /dev/null > /etc/samba/smb.conf addgroup smbgrp useradd ckenko25 -G smbgrp smbpasswd -a ckenko25
mkdir -p /samba/secured
cd /samba
chmod -R 0770 secured
chown root:smbgrp secured
vi /etc/samba/smb.conf
[global] workgroup = WORKGROUP server string = Samba Server %v netbios name = ubuntu security = user map to guest = bad user dns proxy = no [secured] path = /samba/secured valid users = @smbgrp guest ok = no writable = yes browsable = yes service smbd restart
コメント