LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-05-2005, 12:00 PM   #1
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Rep: Reputation: 30
/mnt file permissions


I mounted my winxp in FC3 this is my /etc/fstab entry:

/dev/hda1 /mnt/winxp vfat iocharset=iso8859-1,codepage=850,umask=0 0 0

i just want to know if my file permision is read only, if not please tell me how to change it.. thnx in advance.
 
Old 12-05-2005, 12:33 PM   #2
live_dont_exist
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257

Rep: Reputation: 30
Hi Jt,

Run the command #mount | grep /dev/hda1

Do you see a 'ro' at the end? If yes its mounted read only.You can also see the same in the file /etc/fstab as mentioned. You can force a read only by using -o ro in conjunction with the mount command if Im not mistaken...

Arvind
 
Old 12-05-2005, 01:09 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Your umask=0 specification should, I believe, set the file to rwx for everyone. You could use umask=6, but, as Arvind suggested, replacing the umask entry by ro is probably easier to read.
 
Old 12-06-2005, 04:23 AM   #4
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
thnx can i set it so that only root has the rwx permission?
 
Old 12-06-2005, 04:30 AM   #5
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
Default is only root has full access permission.
 
Old 12-06-2005, 04:33 AM   #6
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
so even if my fstab is set to umask= 0 0 0, only root has full access permision, and when i log in as a regular user i'l have a read only permision??
 
Old 12-06-2005, 04:37 AM   #7
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
No, umask=0 means everyone has rwx (777) permission.
 
Old 12-06-2005, 04:43 AM   #8
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
so how can i change it so that only root has rwx permision? sory im a lil lost... thnx in advance
 
Old 12-06-2005, 04:44 AM   #9
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
delete umask=0
 
Old 12-06-2005, 04:46 AM   #10
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
ok just to clarify coz i dnt want to mess up my fstab, i should change my fstab entry from this:

/dev/hda1 /mnt/winxp vfat iocharset=iso8859-1,codepage=850,umask=0 0 0

to this:

/dev/hda1 /mnt/winxp vfat iocharset=iso8859-1,codepage=850
 
Old 12-06-2005, 04:49 AM   #11
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
The last two zeroes are needed. Don't delete them.
 
Old 12-06-2005, 04:52 AM   #12
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
ah ok so what should my fstab look like?

umask= 0 0?? correct me if im wrong thnx
 
Old 12-06-2005, 04:55 AM   #13
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
/dev/hda1 /mnt/winxp vfat iocharset=iso8859-1,codepage=850 0 0

Are iocharset and codepage redundant, I only use one of them.
 
Old 12-06-2005, 04:59 AM   #14
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
so will this entry be ok:

/dev/hda1 /mnt/winxp vfat iocharset=iso8859-1 0 0
 
Old 12-06-2005, 05:01 AM   #15
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
Yes, I think so.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot go to file:/mnt/Ekstern z_t Linux - Newbie 20 09-09-2005 10:48 AM
/mnt ...Read Only File System rblampain Linux - Distributions 4 12-29-2004 11:16 PM
Problem of permissions /mnt/windows rosariowong Slackware 1 08-17-2004 06:39 AM
Can't change permissions for mnt/windows(XP) webwolf70 Linux - General 2 08-13-2004 01:35 PM
/mnt/cdrom is locked--even with permissions sleepy96 Linux - Newbie 2 06-06-2001 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:06 AM.

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
Open Source Consulting | Domain Registration