Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
|
08-10-2003, 06:02 PM
|
#1
|
Member
Registered: Mar 2003
Posts: 105
Rep:
|
fat32 partition
I am trying to mount a fat32 partition and here is the line I put in fstab "/dev/hda4 /fat32 vfat auto,umask=777". The problem is when I log in as just a normal user and try to access /fat32 I get the following error "bash: cd: /fat32: Permisssion denied". Also I have noticed that the other entries have two numbers on the end and I was wonder what they were for. One more question that is slightly off topic. With vim I know you push i to inserted characters before the highlighted character but how do you inserted afterward.
|
|
|
08-10-2003, 06:08 PM
|
#2
|
Member
Registered: Feb 2003
Location: SC, USA
Distribution: Mandrake 10.0 Powerpack
Posts: 178
Rep:
|
you need to chmod the /fat32 dir so that others can open it. If you're using a gui you can probably change the permissions with a file manager.
For your second question post the lines you're talking about and we'll explain them to you.
I know in vi you just press i and then you can move the cursor to insert characters after the highlighted character. I'm pretty sure it's going to be the same in vim also unless I'm misunderstanding your question.
|
|
|
08-10-2003, 06:10 PM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well seeing as umask=777 means that noone is allowed to access the files at all... try 022, or 002 instead
|
|
|
08-10-2003, 06:55 PM
|
#4
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Acid's right.
chmod and umask values work in an "opposite" way
chmod 777
Will give you rwx permissions for owner, group and other
umask 000 is "equivalent" - you use umask in an /etc/fstab entry -
So umask=000 would be sufficient.
The last two fields in a typical /etc/fstab entry mean :
The 5th field indicates whether the filesystem should be included in a back-up.
The 6th Field indicates how the filesystem should be checked on boot up.
Use 0 0 for a Windows entry.
Last edited by Skyline; 08-10-2003 at 06:59 PM.
|
|
|
08-10-2003, 08:20 PM
|
#5
|
Member
Registered: Mar 2003
Posts: 105
Original Poster
Rep:
|
Ya that work just right. I wonder why it would be opposite like that?
|
|
|
08-10-2003, 08:24 PM
|
#6
|
Member
Registered: Mar 2003
Posts: 105
Original Poster
Rep:
|
One more thing if I wanted read only for my xp partition I could use the option ro or umask=333 right?
|
|
|
08-10-2003, 08:53 PM
|
#7
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Correct - umask=333 gives read only for owner,group,other
|
|
|
08-10-2003, 09:40 PM
|
#8
|
Member
Registered: Mar 2003
Posts: 105
Original Poster
Rep:
|
This is what I put into fstab for my xp partition:
/dev/hda1 /xp ntfs auto,umask=333 0 0
When I try to access it as a normal user I get the same error as before:
bash: cd: /xp: Permission denied
I want /xp to be read only because last I heard ntfs was still experimental with writing.
|
|
|
08-10-2003, 11:36 PM
|
#9
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Just an idea - but why not create a mount point in /mnt using mkdir
ie say
mkdir /mnt/winxp
then use this - substituting the various fields in
ie your Partition, Mount point and User ID Number ( uid ) in place of my example ones
/dev/hda1 /mnt/winxp ntfs auto,ro,umask=222,uid=501 0 0
You can get your User ID Number by getting to the command line and typing:
id username – (substitute username with Aaron or Sofie or whatever your username is)
look for the
uid=xxx - thats your user id number
Last edited by Skyline; 08-10-2003 at 11:51 PM.
|
|
|
All times are GMT -5. The time now is 04:56 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
|
|