Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hopefully this is not a blatant re-post of another thread, I did try searching the forums prior to posting this. Anyway, here's my issue:
I have an external hard drive attached via USB to my Ubuntu box, set to a mount point of "/storage/500G". When I do an ls -l on the /storage directory it spits out the following:
dr-xr-xr-x 1 root root 4096 2009-12-16 08:28 500G
drwxrwxrwx 9 matt matt 4096 2009-12-16 15:48 maxtor160
I've tried to do the "chown -R matt:matt "/storage/500G"" command on it, and it thinks about for awhile and acts like it is working, but then when I "ls -l" the directory again the output is identical to the first time I did it. I was expecting the "root root" entry would change to "matt matt".
The problem is that I cannot move files to this directory via the command line since I do not have write permissions on this.
I also tried to do a "sudo chmod 777 -R "/storage/500G"", but this did not have any effect on the permissions.
Can anyone tell me how to change the owner of this directory? I'm afraid I'm about to hose my system if I do any more chown -R commands...
Aye ... you can't chown/chmod NTFS .. you can modify the options
you've used to mount it, though.
How are you going about mounting those drives?
Do they have corresponding /etc/fstab lines? What does 'mount' issued all by itself tell you about those
two mount-points?
Cheers,
Tink
Last edited by Tinkster; 12-16-2009 at 08:20 PM.
Reason: [i][/i]
I did the mount command all by itself and here's what it spit out:
root@MLB2:/storage# mount
/dev/sdb1 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw)
/dev/sdc1 on /storage/maxtor160 type ext3 (rw)
/dev/sda1 on /media/data3 type ext3 (rw)
/dev/sdb5 on /usr type ext3 (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev )
gvfs-fuse-daemon on /home/matt/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev ,user=matt)
/dev/sdd1 on /storage/500G type fuseblk (rw,nosuid,nodev,allow_other,default_per missions,blksize=4096)
I wish I knew what I did when I set up the fstab... but I just googled it and copied and pasted as best I could!
Ok. So I unmounted it and commented the fstab line. When I plugged it back in it shows up as an external drive, but nothing shows up in my mount point - which I understand is a result of commenting the fstab line.
I went ahead and changed the fstab line per bret381's recommendation. I remounted the drives and I noticed something did change - instead of
dr-xr-xr-x 1 root root 4096 2009-12-16 08:28 500G
it now reads:
drwxrwxrwx 1 root root 4096 2009-12-16 08:28 500G
was this due to the fstab change? Whatever it was, I can now move files onto this drive via the terminal. WOOHOO!!
Hmmm ... the original fstab line had a umask of 0222, so yes, the
suggested change did the trick in allowing anyone to write to it
w/o explicitly stating it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.