Find the answer to your Linux question:
Results 1 to 6 of 6
Still pretty much a newby. I posted this a couple of times before without much luck, I thought I would try again. My problem is that I don't seem to ...
  1. #1
    Just Joined!
    Join Date
    May 2005
    Location
    Kent, WA
    Posts
    27

    Write permissions on my NAS device

    Still pretty much a newby. I posted this a couple of times before without much luck, I thought I would try again. My problem is that I don't seem to have write permissions to my NAS device inside the Gnome GUI. For example, I cannot copy files from the local disk to the NAS using the GUI file explorer. I get a "not enough space" error when there is definitely free space available. Another example is, I can open a document from the NAS in say Open Office but when I try to save my changes it says something about a general input/output error while accessing /mnt/nas/bla bla bla.doc. My work around has been to save files to my local disk and copy them to the nas using the command line.

    Any ideas? I know one of you brainy gurus has a few tricks up your sleeve. If I can get this one problem solved, all my computers and laptops in the house are getting this OS installed.

    Ubuntu 7.10 with the Gnome desktop

  2. #2
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    Quote Originally Posted by curt8769
    I get a "not enough space" error when there is definitely free space available.
    Grrr... I hate erroneous error messages.

    I understand that non of the GUI applications let you write to the NAS. But they do allow you to read from the NAS.
    I also understand that you can write to the NAS from the command line.


    Let's look at basic permissions first. Can you post the output of these commands:
    Code:
    mount
    cat /etc/fstab | grep -i nas
    ls -l /mnt | grep -i nas
    ls -l /mnt/nas
    One of the things I can imagine to have gone wrong is that the default permissions on the drive are set to root.root. That's quite easy to fix. But what I think is strange is that you say the command line does let you copy files. You're not by any chance using sudo or su to copy the files, are you?
    Can't tell an OS by it's GUI

  3. #3
    Just Joined!
    Join Date
    May 2005
    Location
    Kent, WA
    Posts
    27
    Here is the output from the commands. I do not have to use sudo to copy files to the nas, I just tried again and i was able to copy a doc from local disk to nas from the command line. i was able to delete the file using the GUI. Then tried to copy the file again using the GUI and got "not enough space"


    mount
    /dev/sda1 on / type ext3 (rw,errors=remount-ro)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    /sys on /sys type sysfs (rw,noexec,nosuid,nodev)
    varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
    varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
    udev on /dev type tmpfs (rw,mode=0755)
    devshm on /dev/shm type tmpfs (rw)
    devpts on /dev/pts type devpts (rw,gid=5,mode=620)
    lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
    securityfs on /sys/kernel/security type securityfs (rw)
    //nas/home_nas on /mnt/nas type smbfs (rw)

    cat /etc/fstab | grep -i nas
    # //nas/home_nas
    //nas/home_nas /mnt/nas smbfs credentials=/etc/samba/user,rw,uid=curt 0 0

    ls -l /mnt | grep -i nas
    drwxr-xr-x 1 curt root 4096 2008-05-29 17:52 nas

    ls -l /mnt/nas
    total 75
    drwxr-xr-x 1 curt root 4096 2007-07-14 15:36 Backup
    drwxr-xr-x 1 curt root 4096 2008-01-06 07:22 BearShare Downloads
    drwxr-xr-x 1 curt root 4096 2007-06-04 13:15 BearShare Temp
    drwxr-xr-x 1 curt root 4096 2007-09-25 08:22 Blue Print PDF files
    dr-xr-xr-x 1 curt root 4096 2007-07-07 04:12 Dads Folder
    drwxr-xr-x 1 curt root 4096 2008-04-28 11:15 Dads Music
    drwxr-xr-x 1 curt root 4096 2008-04-21 11:20 Documents
    drwxr-xr-x 1 curt root 4096 2005-11-04 03:20 Drivers
    dr-xr-xr-x 1 curt root 4096 2008-01-12 17:39 Favorites
    drwxr-xr-x 1 curt root 4096 2008-05-04 02:30 Music
    drwxr-xr-x 1 curt root 4096 2008-03-15 12:40 Pictures
    drwxr-xr-x 1 curt root 4096 2007-01-06 10:36 playlists
    -r-xr-xr-x 1 curt root 10752 2007-10-02 17:38 PREPOSAL james rowland2.wps
    drwxr-xr-x 1 curt root 4096 2006-05-20 05:49 Recipies
    drwxr-xr-x 1 curt root 4096 2008-01-06 08:36 Software
    drwxr-xr-x 1 curt root 4096 2008-04-26 07:10 test
    drwxr-xr-x 1 curt root 4096 2007-07-07 06:42 Videos

  4. #4
    Just Joined!
    Join Date
    May 2005
    Location
    Kent, WA
    Posts
    27
    Just a little more basic info you may want to know. This is consistent on 2 different laptops with the same OS and desktop. On a third laptop (actually the first one of the 3 to get Ubuntu) I chose the KDE desktop, and using the exact same mounting method, everything worked fine.

  5. #5
    Just Joined!
    Join Date
    May 2005
    Location
    Kent, WA
    Posts
    27
    bumping.....

  6. #6
    Just Joined!
    Join Date
    May 2005
    Location
    Kent, WA
    Posts
    27
    bump again. How many bumps is to many? I Don't want people to think I am spamming.

Posting Permissions

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