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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
12-05-2005, 12:00 PM
|
#1
|
Member
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537
Rep:
|
/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.
|
|
|
12-05-2005, 12:33 PM
|
#2
|
Member
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257
Rep:
|
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
|
|
|
12-05-2005, 01:09 PM
|
#3
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187
|
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.
|
|
|
12-06-2005, 04:23 AM
|
#4
|
Member
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537
Original Poster
Rep:
|
thnx can i set it so that only root has the rwx permission?
|
|
|
12-06-2005, 04:30 AM
|
#5
|
Member
Registered: Jan 2005
Posts: 178
Rep:
|
Default is only root has full access permission.
|
|
|
12-06-2005, 04:33 AM
|
#6
|
Member
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537
Original Poster
Rep:
|
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??
|
|
|
12-06-2005, 04:37 AM
|
#7
|
Member
Registered: Jan 2005
Posts: 178
Rep:
|
No, umask=0 means everyone has rwx (777) permission.
|
|
|
12-06-2005, 04:43 AM
|
#8
|
Member
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537
Original Poster
Rep:
|
so how can i change it so that only root has rwx permision? sory im a lil lost... thnx in advance
|
|
|
12-06-2005, 04:44 AM
|
#9
|
Member
Registered: Jan 2005
Posts: 178
Rep:
|
delete umask=0
|
|
|
12-06-2005, 04:46 AM
|
#10
|
Member
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537
Original Poster
Rep:
|
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
|
|
|
12-06-2005, 04:49 AM
|
#11
|
Member
Registered: Jan 2005
Posts: 178
Rep:
|
The last two zeroes are needed. Don't delete them.
|
|
|
12-06-2005, 04:52 AM
|
#12
|
Member
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537
Original Poster
Rep:
|
ah ok so what should my fstab look like?
umask= 0 0?? correct me if im wrong thnx
|
|
|
12-06-2005, 04:55 AM
|
#13
|
Member
Registered: Jan 2005
Posts: 178
Rep:
|
/dev/hda1 /mnt/winxp vfat iocharset=iso8859-1,codepage=850 0 0
Are iocharset and codepage redundant, I only use one of them.
|
|
|
12-06-2005, 04:59 AM
|
#14
|
Member
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537
Original Poster
Rep:
|
so will this entry be ok:
/dev/hda1 /mnt/winxp vfat iocharset=iso8859-1 0 0
|
|
|
12-06-2005, 05:01 AM
|
#15
|
Member
Registered: Jan 2005
Posts: 178
Rep:
|
Yes, I think so.
|
|
|
All times are GMT -5. The time now is 07:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|