nerdexam
Red_Hat

RH302 · Question #102

There are mixed lots of System running on Linux and Windows OS. Some users are working on Windows Operating System. There is a /data directory on linux server should make available on windows to…

1. vi /etc/samba/smb.conf [global] netbios name=station? workgroup = mygroup server string=Share from Linux Server security=user smb passwd file=/etc/samba/smbpasswd encrypt passwords=yes [data] path=/data writable=yes public=no browsable=yes valid users=user1 user2 2…

Network configuration

Question

There are mixed lots of System running on Linux and Windows OS. Some users are working on Windows Operating System. There is a /data directory on linux server should make available on windows to only user1 and user2 users with full access. Configure to make available.

Explanation

  1. vi /etc/samba/smb.conf [global] netbios name=station? workgroup = mygroup server string=Share from Linux Server security=user smb passwd file=/etc/samba/smbpasswd encrypt passwords=yes [data] path=/data writable=yes public=no browsable=yes valid users=user1 user2
  2. smbpasswd -a user1
  3. smbpasswd -a user2
  4. service smb start | restart
  5. chkconfig smb on Samba servers helps to share the data between linux and windows. Configuration file is /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#smb.conf#user-based access control#Windows file sharing

Community Discussion

No community discussion yet for this question.

Full RH302 Practice