LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-25-2011, 12:55 PM   #1
kouroshz
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
Folder Group permission Fedora


Hi,

I am trying to give the members of the group write permission to a folder as follows:


$sudo groupadd my_group
$sudo usermod -a -G my_group user_name

$sudo mkdir /group_folder
$sudo chgrp my_group /group_folder -R
$sudo chmod g+w /group_folder -R

on the above user_name is my own username

Then I try to write in the folder as myself:

$cd /group_folder
$touch test

and I get Permission denied.


What am I not doing right? I am running Fedora Release 14. Can anybody help please.

Cheers,

kz
 
Old 02-25-2011, 02:04 PM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
It should work, You might try logging out and back in again so your new group membership takes affect.

Regards,

Fordeck
 
1 members found this post helpful.
Old 02-25-2011, 02:26 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Quote:
$sudo mkdir /group_folder
$sudo chgrp my_group /group_folder -R
$sudo chmod g+w /group_folder -R
Did you test your chgrp and chmod to see that they worked. ls -l /group_folder will show you the owner and group of the folder. It will also show you whether or not the group does indeed have write permission.
 
Old 02-26-2011, 12:20 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
did you set up sudo ?
fedora dose not use it by default and dose not even install it by default
 
Old 02-27-2011, 09:47 AM   #5
kouroshz
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the replies.

When you do ls -l all the permissions seem correct:

$ls -l
drwxrwxr-x.

My sudo is also setup correctly. However, when I logged out and back in, everything worked as expected! I think I just needed to log out and back in for the new group to take effect.

Thank you very much.

kz
 
Old 02-27-2011, 10:07 AM   #6
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Great I'm glad it is working for you now. You might consider marking the thread as solved, using the Thread Tools at the top of the page so that others might benefit.

Regards,

Fordeck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing permission on a folder so group users can Read and Write maginotjr Linux - Server 7 03-27-2009 04:22 PM
Change owner, group and permission settings on file and folder creation?? helptonewbie Linux - Newbie 9 12-17-2007 04:03 PM
missing folder permission, owner and group tritonw Linux - General 4 10-29-2007 12:21 AM


All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration