LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file permission (https://www.linuxquestions.org/questions/linux-newbie-8/file-permission-451759/)

varaahan 06-05-2006 07:19 AM

file permission
 
I am mounting my windows partition under /mnt/win.
I changed the permissions (as root user) using the
"chmod +777 /mnt/win". When I checked the permissions,
using ls -l command I get "drwxr-xr-x" only. Why the
directory is not writable by all users?

Boovarahan S

Wim Sturkenboom 06-05-2006 08:23 AM

Check the entry in fstab. You have to set a umask. See i.e. http://gentoo-wiki.com/HOWTO_Mount_W...DOS,_FAT,_NTFS)

jeelliso 06-05-2006 08:28 AM

You shouldn't have to set a umask.

Unfortunantly I could not recreate your problem. I tried exactly what you did, but I got different results.
Code:

[root@mailman ~]# ls -l
total 164
-rw-r--r--  1 root root  1510 May 24 05:36 anaconda-ks.cfg
-rw-------  1 root root    1 Jun  1 12:22 dead.letter
drwxr-xr-x  2 root root  4096 May 24 10:42 Desktop
-rw-r--r--  1 root root 17007 May 26 12:28 grep
-rw-r--r--  1 root root  311 Jun  2 08:57 index.html
-rw-r--r--  1 root root 46879 May 24 05:36 install.log
-rw-r--r--  1 root root  5050 May 24 05:36 install.log.syslog
-rw-------  1 root root 29169 Jun  1 14:36 mbox
drwxr-xr-x  2 root root  4096 Jun  5 09:19 temp
[root@mailman ~]# chmod +777 temp
[root@mailman ~]# ls -l
total 164
-rw-r--r--  1 root root  1510 May 24 05:36 anaconda-ks.cfg
-rw-------  1 root root    1 Jun  1 12:22 dead.letter
drwxr-xr-x  2 root root  4096 May 24 10:42 Desktop
-rw-r--r--  1 root root 17007 May 26 12:28 grep
-rw-r--r--  1 root root  311 Jun  2 08:57 index.html
-rw-r--r--  1 root root 46879 May 24 05:36 install.log
-rw-r--r--  1 root root  5050 May 24 05:36 install.log.syslog
-rw-------  1 root root 29169 Jun  1 14:36 mbox
drwxrwxrwx  2 root root  4096 Jun  5 09:19 temp
[root@mailman ~]#

I even tried the chmod with a directory in my /mnt directory, but I got the same results. There is not reason (that I can think of), that you should be getting the error you are getting. Its frustrating. Try
Code:

chmod a+w /mtn/win
and see if it will let you add all write access. If you can't do it this way either, I would try running the command in a different shell. You're probably using the bash shell, so try running it in a csh or sh shell.

Good Luck,
~Justin


All times are GMT -5. The time now is 03:28 AM.