Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]write permission
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Sun Sep 18, 2005 7:18 pm    Post subject: [SOLVED]write permission Reply with quote

hi, I don't really know where to post,so here I am :)

My initial problem was to mount a directory via nfs where it would be possible to add files, but impossible to delete.. Well it looks like it's not possible (playing with permission, owner and so on).

Anyway forget about nfs, I'm not using "i" right now, I just found some weird things, just tell me if that's normal behaviour or not:


On the same computer, i've got 2 users:
Code:
invite@gentoobox ~ $ groups
share

and
sam@gentoobox ~ $ groups
adm wheel audio video games users portage shutdown share


and the strange thing :?
Code:
invite@gentoobox /home/data/pentax $ ls -l
total 29765
-rw-r--r--  1 sam    users  182412 jun 29 19:38 075.jpg
-rw-r--r--  1 sam    users  330372 jun 29 19:38 078.jpg
-rw-r--r--  1 sam    users  368873 jun 29 19:38 086.jpg
-rw-r--r--  1 sam    users  341614 jun 29 19:38 087.jpg
(...)
invite@gentoobox /home/data/pentax $ mv 075.jpg 076.jpg
invite@gentoobox /home/data/pentax $


I have no permission denied wheras i'm logged in as invite and not sam?
(and it worked
Code:
invite@gentoobox /home/data/pentax $ ls -l
total 29765
-rw-r--r--  1 sam    users  182412 jun 29 19:38 076.jpg
-rw-r--r--  1 sam    users  330372 jun 29 19:38 078.jpg
(..)
)

Is that really strange, or it's just me??


Last edited by truc on Sun Sep 18, 2005 10:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
s3ntinel
n00b
n00b


Joined: 04 Apr 2005
Posts: 64

PostPosted: Sun Sep 18, 2005 8:49 pm    Post subject: Reply with quote

Try
Code:
ls -l ../


To see the permissions of the folder /home/data/pentax

(read man chmod) - set sticky bit

Code:
chmod 1777 /home/data/pentax


invite can then add and delete their own files, but not delete yours

http://www.linuxdevcenter.com/pub/a/linux/lpt/22_06.html
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Sun Sep 18, 2005 10:15 pm    Post subject: Reply with quote

yeah, I love you :lol:
Code:
ls -l ..
total 7950
drwxrwxrwx  8 sam    share    1992 Sep 19 01:43 pentax


Thanks so much, sticky bit fits exactly my needs:)

thanks for the link;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum