Problems mounting smbfs/ntfs in /etc/fstab to give read-write permissions

Discussion in 'Linux Networking' started by relaxedrob, Sep 7, 2004.

  1. relaxedrob

    relaxedrob Guest

    Hi All,

    I have the following line in my /etc/fstab to mount an NTFS drive:

    //HONS/RobertMarkBram /phdWeb smbfs
    rw,username=rob,password=XXXXXX,uid=gid=500 0 0

    I have that id, but I still do not have write permissions:

    robertmarkbram - /phdWeb
    uid=500(robertmarkbram) gid=500(robertmarkbram)

    robertmarkbram - /phdWeb
    $touch temp
    touch: creating `temp': Permission denied

    robertmarkbram - /phdWeb
    $ls -lad .
    drwxr-xr-x 1 65535 root 4096 Sep 3 17:19 .

    Can anyone tell me what is going wrong?

    Any advice would be most appreciated!

    relaxedrob, Sep 7, 2004
    1. Advertisements

  2. From the permission set, "root" as group has only read access. Instead, the
    share is mounted as "nobody" or a user that doesn't exist on your system.
    The syntax "uid=gid" isn't mentioned as legal in the mount documentation and
    might therefore be ignored?
    Walter Mautner, Sep 7, 2004
    1. Advertisements

  3. relaxedrob

    relaxedrob Guest

    Hi Walter,
    That did the trick! I changed that part to "uid=500,gid=500" and it works fine.

    Thank you very much!

    relaxedrob, Sep 8, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.