useradd gautham
smbpasswd -a gautham
chown -R gautham:gautham
gautham
chown gautham:kgislict gautham/*
cd /opt/
mkdir Gautham
vi /etc/samba/smb.conf
[gautham]
path = /opt/gautham
valid users = kgislict, gautham
write list = kgislict, gautham
create mask = 0770
directory mask = 0770
vfs objects = recycle
recycle:exclude = *.tmp,*.temp
recycle:keeptree = yes
recycle:repository = .recycle/%U
recycle:touch = yes
recycle:versions = yes
chcon -t samba_share_t /opt/gautham
/etc/init.d/smb restart
No comments:
Post a Comment