Sign in with
Sign up | Sign in
Your question

file/directory permissions

Last response: in Linux/Free BSD
Share
September 10, 2002 12:16:01 AM

I've got a seperate fat32 partition that I need to give full user permissions to. I mean, where joe schmoe can read/write/execute from it.

I thought the mount options "user,exec,nosuid,rw" would do the trick. But it ain't working. Root can flip through just fine, but my "normal" user can't; I get shot down when I go to move files (write) to it.

I do I mount this entire partition with unrestricted access for all users?

I'm using Mandrake 8.2, if that even matters...



P@ll4dium f0r L1f3!
September 10, 2002 12:34:49 AM

Are you mounting it as root or as a user?
September 10, 2002 2:02:16 AM

Um.

Actually I have it in my fstab.

If that makes any difference.

And just what the h3ll does "fstab" stand for anyways?

file system something something something?

P@ll4dium f0r L1f3!
Related resources
September 10, 2002 2:44:59 AM

try adding umask=0777 to the options in fstab which would make it world r/w.
September 10, 2002 5:36:43 AM

Isn't it 0007?

If my baby don't love me, I know, I know, her sister will.
September 10, 2002 2:27:21 PM

God I hope that was a James Bond joke.

It is totally uncool, and slightly o-fensive, to make jokes with someone who is so new they will screw the system completely. Do I need to get rid of the "user, exec, nosuid, rw" stuff, or will it matter? And what the heck kind of an option is "--". I can't find that one anywhere in any how-to's or my bible. It's put on default for my cdrom reader.

Anyways, I go now to make changes...

Gracias!
September 10, 2002 3:14:54 PM

It was not a joke. To get your wanted umask, you take the permissions you want and subtract them from 777. Thus a umask of 007 gives you permissions of 770. It was a legit answer. He made no joke and I am offended at your response to somebody trying to help you with your problem. There is no intention from his statement to do harm to your system.

<font color=blue>Unofficial Forum Cop</font color=blue>
September 10, 2002 7:04:03 PM

Oops, looks like it is 0777... I'm not chmod expert, so I just took a few things off of a site I found. 0007 is to let others read/write/etc, 0070 is for group, and 0700 is for owner (as I understand it that is). So to make it readable by everyone, it should be 0777.

Besides, James Bond is 007, not 0007.

If my baby don't love me, I know, I know, her sister will.
September 10, 2002 11:06:25 PM

Thanks everyone.

SilverPig: do you remember what site you were on to find those designations?

P@ll4dium f0r L1f3!
September 11, 2002 8:48:50 PM

I have a windows partition mounted. Here is my fstab for your reference. It is mounted to /windows

LABEL=/ / ext2 defaults 1 1
LABEL=/boot /boot ext2 defaults 1 2
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/hda1 /windows vfat defaults 0 0
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0
0

<font color=blue>Unofficial Forum Cop</font color=blue>
September 12, 2002 1:06:20 AM

Thank you, but the default is to completely lock that drive down. I want to open it up.

So, I tried adding umask=0777 to my fstab. Right now it has absolutely no permissions whatsoever.

*ROOT* can't even change the permissions on the drive. It tells me "you have insufficient access to chage this file...".

If friggin root doesn't have access, who the hell does?

God?!?!?!?!!?!?!?1/1/1

(I'm at a turning point. I don't know if I want to cry, or load the shotgun)


[edit: OMFG! Just for grins I changed the umask to 0000, and it worked! Total access!!!

W000000000oo000000000000000o00000000000oooo000000000000000000-
000000000000o000000000o0o0000000000oooo00000000000000000000-
0000000000000o00000000o0000000o0000000000000000t!!!!!!!!!!!!!!!!!!

Thanks everyone!)



P@ll4dium f0r L1f3!
September 12, 2002 11:54:48 AM

yep. umask octals are basically the opposite of chmod ones.

<i>Do I look like I care?</i>
September 12, 2002 1:48:25 PM

That is what I tried to explain to you earlier....but I got a couple of posts mixed up and it wasn't as clear as it should of been. But anyways, glad you got it to work.

<font color=blue>Unofficial Forum Cop</font color=blue>
September 12, 2002 9:22:54 PM

Yeah, I can see now what you were talking about. I might have explained it a little differently, but you gave me the starting place when I didn't even have that.

Thanks!

P@ll4dium f0r L1f3!
!