LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-05-2006, 07:19 AM   #1
varaahan
Member
 
Registered: Jul 2005
Location: chennai, india
Distribution: Puppy, Arch Linux,Absolute Linux
Posts: 83

Rep: Reputation: 15
Question 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
 
Old 06-05-2006, 08:23 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Check the entry in fstab. You have to set a umask. See i.e. http://gentoo-wiki.com/HOWTO_Mount_W...DOS,_FAT,_NTFS)
 
Old 06-05-2006, 08:28 AM   #3
jeelliso
Member
 
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File Permission gardenair Linux - Newbie 5 04-28-2005 10:35 PM
Permission on one file. TheRealDeal Linux - General 4 12-17-2003 10:59 PM
file permission Nechos Linux - Software 2 10-04-2003 03:31 PM
what's file permission for this? doublefailure Linux - Newbie 2 03-16-2002 11:21 AM
File Permission glock19 Linux - General 4 01-02-2002 07:40 PM


All times are GMT -5. The time now is 01:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration