For some reason only root can read my /mnt/windows directory nowdays. How do I allow users to view it too, they can mount it and everything.
For some reason only root can read my /mnt/windows directory nowdays. How do I allow users to view it too, they can mount it and everything.
I think you want chmod 755 or 555 - that way everybody can read/execute (which is list in directory terms) but not write. Otherwise it's 777 for read/write access.
I'm not really a lot of help though - as I'm terrible with file permissions!
chmod go+rx <directory name>
I find that method easier than the binary to decimal one.
u = user
g = group
o = other
then + or -
then
r - read
w - write
x - execute
So the command above would add read and execute permissions to group and other to the directory you specify.
You may need to run it recursively tho (add -R), so that all the files and folders in /mnt are updated.
"All our beliefs are being challenged now, and rightfully so, they're stupid." - Bill Hicks
Neither seems to work. The drives NTFS, could that be why?
Erm, be VERY careful with NTFS drives under Linux! You can easily lose your data...
What Distro are you using? How are you mounting the drive?
"All our beliefs are being challenged now, and rightfully so, they're stupid." - Bill Hicks
Right sorted it, just needed to add the umask to my fstab. Thanks for that kez!
DaBeeeenster it's auto mounted via the fstab, read only tho. Running gentoo.
Ah OK. I run Gentoo too - great distro.Originally Posted by Stubzz
Just make sure you have the drives mounted read only; the NTFS drivers are not stable enough yet for NTFS writing...
"All our beliefs are being challenged now, and rightfully so, they're stupid." - Bill Hicks
Havn't even got write support in the kernel, according to which write support is safe. Albeit you can only edit files, without changing their size and nothing else. Sounds useful.
There are currently 1 users browsing this thread. (0 members and 1 guests)