Pages

Wednesday, November 30, 2011

How to mount network sharing on linux

This post will discuss about how to mount network sharing using samba on linux. Here are the steps :
  1. Install samba server
  2. Add linux user
    # useradd [username]
    # passwd [username]
    
  3. Add samba user
    # smbpasswd -a [username]
    
  4. 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
    
  5. Set security level in /etc/samba/smb.conf
    security = user
    
  6. Restart samba server
    # service samba restart
    
  7. on computer client, add this line in /etc/fstab
    //[servername]/[sharename]  /[media]/[mountname]  cifs  username=[username],password=[pwd]  0  0
    
  8. Remount all drive by using this command
    # mount -a
    

No comments:

Post a Comment

Don't Forget To Join Our Community
×
Widget