LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-24-2005, 09:59 AM   #1
Yig
Member
 
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Rep: Reputation: 15
File/folder permissions


Hi,

I'm having some problems with file permissions on a folder.

I created a group called cvs. Then I made cvs the owner of /usr/local/cvsroot and ckecked the Group ID box. So basically the permissions is 2774.

If I create a new folder under /usr/local/cvsroot it will keep the group owner. If I create a new file, it does not keep the group owner.

How do I make sure that every current and future files and folders under /usr/local/cvsroot has the rwx permissions for the cvs group?

I'm running Gnome on CentOS 4.2.

Hope I was clear

Thanks!
 
Old 11-24-2005, 11:16 AM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
I can't state it any better than this....

http://www.linuxquestions.org/questi...ticle&artid=20

Hope that helps some.
 
Old 11-24-2005, 12:15 PM   #3
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Rep: Reputation: 48
Code:
[root@saturn ~]# groupadd cvs
[root@saturn ~]# mkdir /usr/local/cvsroot
[root@saturn ~]# chown :cvs /usr/local/cvsroot
[root@saturn ~]# chmod 2774 /usr/local/cvsroot
[root@saturn ~]# touch /usr/local/cvsroot/file{1,2,3}
[root@saturn ~]# ls -l /usr/local/cvsroot/file{1,2,3}
-rw-r--r--  1 root cvs 0 Nov 24 23:37 /usr/local/cvsroot/file1
-rw-r--r--  1 root cvs 0 Nov 24 23:37 /usr/local/cvsroot/file2
-rw-r--r--  1 root cvs 0 Nov 24 23:37 /usr/local/cvsroot/file3
[root@saturn ~]#
So it wrks for me...see?

Just in case you already had things inside /usr/local/cvsroot before changing group ownership and applying ACLs, did you care to change them recursively?
 
Old 11-28-2005, 03:44 PM   #4
Yig
Member
 
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Original Poster
Rep: Reputation: 15
"chmod 2774 -R folder" did the trick.

Thanks for the tip.
 
  


Reply



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
File and folder permissions steve007 Linux - Newbie 3 06-30-2005 03:48 AM
File and Folder permissions seelk SUSE / openSUSE 9 01-28-2005 06:50 PM
can we overwrite the permissions of folder/file zameer_india Linux - Networking 0 09-30-2004 01:11 AM
File/Folder Permissions with FTP scottpioso Linux - Security 8 03-12-2004 02:19 PM
File / folder Permissions bkbroil Linux - Newbie 3 10-15-2003 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 PM.

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
Open Source Consulting | Domain Registration