Red_Hat
RH302 · Question #139
/data directory on linux server should make available on windows to only john with full access but read only to other users and make sure that /data can access only within example.com domain…
Answers: 1. vi /etc/samba/smb.conf [global] netbios name=station? workgroup=station? security=user smb passwd file=/etc/samba/smbpasswd encrypt passwords=yes hosts allow= .example.com [data] path=/data public=no writable=no write list=john browsable=yes 2. smbpasswd -a john 3…
Service management
Question
/data directory on linux server should make available on windows to only john with full access but read only to other users and make sure that /data can access only within example.com domain. Configure to make available.
Explanation
Answers:
- vi /etc/samba/smb.conf [global] netbios name=station? workgroup=station? security=user smb passwd file=/etc/samba/smbpasswd encrypt passwords=yes hosts allow= .example.com [data] path=/data public=no writable=no write list=john browsable=yes
- smbpasswd -a john
- service smb start
- chkconfig smb on /etc/samba/smb.conf. There are some pre-defined section, i. ->global use to define the global options, ii. Printers use to share the printers, iii. -> homes use the share the user's home directory. Security=user -> validation by samba username and password. May be there are other users also. To allow certain share to certain user we should use valid users option. smbpasswd ->Helps to change user's smb password. -a option specifies that the username following should be added to the local smbpasswd file. If any valid users option is not specified, then all samba users can access the shared data. By Default shared permission is on writable=no means read only sharing. Write list option is used to allow write access on shared directory to certain users or group members.
Topics
#Samba#file sharing#user permissions#domain restriction
Community Discussion
No community discussion yet for this question.