Results 1 to 2 of 2

Thread: mount a server partition with normal user access

  1. #1
    Join Date
    Sep 2005
    Beans
    2

    mount a server partition with normal user access

    Hello,
    Sorry if this issue has already resolved, I searched for it but I didn't find it.

    I need to mount a partition that is on a server (via samba).

    I am doing the following in my fstab
    //server/www /media/www cifs rw,user,allow_other,default_permissions,credential s=/root/.smbcredentials,iocharset=utf8,dir_mode=0777,file_ mode=0777 0 0
    I can mount it but it just allows me to access with the root user.
    How can I do it to get access with any user?

    Additional Data: I added "rw,user,allow_other,default_permissions" because I thought that would solve de problem but it didn't.

    Thanks in advance.

  2. #2
    Join Date
    Dec 2009
    Location
    Chennai, India
    Beans
    117

    Re: mount a server partition with normal user access

    Hi,

    Try the following steps and let me know if it works

    1) Open a Terminal and enter the following:

    Code:
    id
    The output will be something similar to:

    Code:
    uid=1000(karmic) gid=1000(karmic) groups=...
    Make a note of your uid and gid.

    2) Add the following line to your /etc/fstab file :

    Code:
    //servername/sharename  /mountpath  cifs  defaults,uid=1000,gid=1000,credentials=/root/.smbcredentials  0  0
    Modify the servername, sharename, mountpath, etc.

    4) Add the following in /root/.smbcredentials:
    Code:
    username=myusername
    password=mypassword
    Where myusername and mypassword is the user name and password to access the samba share.

    5) Set the following permission to /root/.smbcredentials

    Code:
    chmod 600 /root/.smbcredentials
    6) Also confirm whether the Server Share has the write permissions.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •