This post will discuss about how to mount network sharing using samba on linux. Here are the steps :
- Install samba server
- Add linux user
# useradd [username] # passwd [username]
- Add samba user
# smbpasswd -a [username]
- Set share folder by editing file /etc/samba/smb.conf and add the script below
[Shared] comment = Shared files path = /home/[username]/shared valid users = [username] public = no writable = no
- Set security level in /etc/samba/smb.conf
security = user
- Restart samba server
# service samba restart
- on computer client, add this line in /etc/fstab
//[servername]/[sharename] /[media]/[mountname] cifs username=[username],password=[pwd] 0 0
- Remount all drive by using this command
# mount -a
No comments:
Post a Comment