LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-18-2004, 03:46 PM   #1
linuxnube
Member
 
Registered: Oct 2003
Location: US
Distribution: Fedora C1 & C2
Posts: 81

Rep: Reputation: 15
cd permission woes


This seemed like a newbe question so I am placing it here.

I have a group that I create with groupadd. There is no corresponding user. I have added several users to the group by editing the /etc/group file so that it looks like:

<group>:x:527:<user1>,<user2>,<user3>,<user4>

I have a directory that is owned by root:root and has permission set 777. Inside this directory, I have a subdirectory owned by root:<group> with permission set as 770.

As <user3>, I can get to the first mentioned directory above, but can not get to the subdirectory. However, if I su, and then su <user3>, I can then get it.

What gives?

Please expand my understanding so I can correct this.

Thanks!
 
Old 05-18-2004, 04:44 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
It sounds like you added user3 to the group and then immediately tried to access the directory. This doesn't work because user3 doesn't "realize" that he's in the new group yet. Log out and log back in as user3 and then try again. Also, it's probably a bad idea to make the top level directory 777, since that means anyone on the system can add or remove any file or directory to it. You should probably make it 755 or at least set the sticky bit (chmod u+t directory) to keep people from removing things that they don't own from it.
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
9.2 Woes kyte Mandriva 4 11-08-2003 05:22 PM
Permission woes hildog Linux - Newbie 6 09-20-2003 02:54 PM
X woes norfenstein Slackware 9 03-13-2003 12:11 AM
IP Woes :( adcworks Linux - Networking 8 08-05-2002 11:05 AM

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

All times are GMT -5. The time now is 02:49 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