nerdexam
Red_Hat

RH302 · Question #187

167: /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…

Network configuration

Question

167: /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:

  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 smb start
  4. chkconfig smb on

Topics

#Samba#file permissions#domain restriction#access control

Community Discussion

No community discussion yet for this question.

Full RH302 Practice