You are not logged in.

#1 2010-05-12 23:04:28

Bysshe
Member
Registered: 2004-12-10
Posts: 271

Need user write access to directory [Solved]

chown doesn't work.

I need access to it by everybody read and write mostly

Last edited by Bysshe (2010-05-13 01:04:26)

Offline

#2 2010-05-12 23:16:51

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: Need user write access to directory [Solved]

"chmod 777 <dir>"  will give everyone full access to the directory.   "chmod 1777 <dir>"  will allow only the creator of files to delete them.

Offline

#3 2010-05-12 23:22:47

Bysshe
Member
Registered: 2004-12-10
Posts: 271

Re: Need user write access to directory [Solved]

I'm getting permission denied using all commands as super user and using sudo.  I can verify it's exclusively owned by root:root.

Offline

#4 2010-05-12 23:25:34

Bysshe
Member
Registered: 2004-12-10
Posts: 271

Re: Need user write access to directory [Solved]

the chmod command isn't denied, it just doesn't solve the problem.

Offline

#5 2010-05-12 23:59:52

Bysshe
Member
Registered: 2004-12-10
Posts: 271

Re: Need user write access to directory [Solved]

More info would be helpful, right?

It's sharing access with Windows Vista by dual booting.  I can write to the directory only as root.  It has read permissions for all else.  I still can't figure out how to give it write permission with chmod not working.  That's why I started tyring to change ownership, which comes up permission denied even as root. 

[rob@rob SAVE]$ ls -l
total 32
drwxr-xr-x 2 root root 16384 May 11 19:46 $RECYCLE.BIN
drwxr-xr-x 2 root root 16384 May 12 14:42 Sony

In addition, it is a FAT partition created when I first installed Arch.  It never had access to Windows until I connected another drive and did the map (hd0) blah blah crap to make that work.

Last edited by Bysshe (2010-05-13 00:03:47)

Offline

#6 2010-05-13 00:06:45

Bysshe
Member
Registered: 2004-12-10
Posts: 271

Re: Need user write access to directory [Solved]

I am going to try setting directory permission in fstab.  ....no...that's mount permissions....

Last edited by Bysshe (2010-05-13 00:08:17)

Offline

#7 2010-05-13 00:12:11

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Need user write access to directory [Solved]

Fat has no inherent permissions feature. It is set by how you mount it. So yes, you have to set the right options in fstab.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#8 2010-05-13 00:15:56

Bysshe
Member
Registered: 2004-12-10
Posts: 271

Re: Need user write access to directory [Solved]

I thought so, but the option is set as "defaults" like all other partitions.  I guess I can try "rw, user"  and see what happens.



*Nah, didn't accomplish anything.  Just tried that and yeah rw,user not rw, user.

Last edited by Bysshe (2010-05-13 00:20:16)

Offline

#9 2010-05-13 00:22:53

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Need user write access to directory [Solved]

In man mount look at the section Mount options for fat, specifically umask, dmask and fmask. See if those help.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#10 2010-05-13 00:45:21

Bysshe
Member
Registered: 2004-12-10
Posts: 271

Re: Need user write access to directory [Solved]

It's not having problems being mounted.  It's readable by all.   I need-in addition-write access by the user.  chmod gives no output, and doesn't effectually work.  all other commands give permission denied.

Offline

#11 2010-05-13 00:56:13

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Need user write access to directory [Solved]

It's all there in the man page under the section for fat.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#12 2010-05-13 00:57:11

Bysshe
Member
Registered: 2004-12-10
Posts: 271

Re: Need user write access to directory [Solved]

Bingo.  You're awesome.  I just set umask=0000

There is probably a better way to do it.  maybe 0002 instead.  I'll look back at this thread when I get the chance.  I think that setting makes it wide open.

Last edited by Bysshe (2010-05-13 01:05:53)

Offline

Board footer

Powered by FluxBB