nerdexam
Red_Hat

RH302 · Question #140

/data directory on linux server should make available on windows system that eric user should able to access on read only mode 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 browsable=yes 2. smbpasswd -a eric 3. service smb…

Service management

Question

/data directory on linux server should make available on windows system that eric user should able to access on read only mode within example.com domain.

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 browsable=yes
  2. smbpasswd -a eric
  3. service smb start
  4. 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.

Topics

#Samba#file sharing#read-only access#domain restriction

Community Discussion

No community discussion yet for this question.

Full RH302 Practice