Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]removing group ownership of a file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zacinfinite
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2011
Posts: 90

PostPosted: Fri Sep 23, 2011 1:32 pm    Post subject: [SOLVED]removing group ownership of a file Reply with quote

$groupadd testgroup
$chgrp testgroup filename

Now how do I remove the file ownership form the testgroup?


Last edited by zacinfinite on Fri Sep 23, 2011 2:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10459
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Sep 23, 2011 1:56 pm    Post subject: Reply with quote

Code:
chgrp users filename
perhaps?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
zacinfinite
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2011
Posts: 90

PostPosted: Fri Sep 23, 2011 2:01 pm    Post subject: Reply with quote

Ok that works but is there any way to make that file not belong to any groups?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10459
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Sep 23, 2011 2:07 pm    Post subject: Reply with quote

I don't think files ever do belong to no group. Note what it was and put it back.

Edit: What you're looking for is the "user private group" concept. Set the group for the file to the username that owns the file. For instance, if you're logged in as that user, you could do
Code:
chgrp $USER filename
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Fri Sep 23, 2011 2:18 pm; edited 2 times in total
Back to top
View user's profile Send private message
zacinfinite
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2011
Posts: 90

PostPosted: Fri Sep 23, 2011 2:15 pm    Post subject: Reply with quote

Alright. Thanks
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10459
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Sep 23, 2011 2:19 pm    Post subject: Reply with quote

More information after you replied. See above.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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