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 12-06-2003, 06:32 PM   #1
Punker51
Member
 
Registered: Dec 2003
Posts: 37

Rep: Reputation: 15
Is it safe to use those perms ?


Ok i finally think all my permissions are set and everything works

can u tell me if its secure to have
chmod -R 767 /home/*

i mean if i dont give the execute right to the Others (using chmod 766 instead), users cant log on the ftp server.

Can user execute scripts in their accounts that could hurt my server ?

thx for your time
i really appreciate
 
Old 12-07-2003, 02:00 AM   #2
Punker51
Member
 
Registered: Dec 2003
Posts: 37

Original Poster
Rep: Reputation: 15
any one ?
 
Old 12-07-2003, 09:27 AM   #3
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
This feels like I've come in half way through a thread so I'm not quite sure where you're coming from and what's behind your need to make the file permission change.

Having said that, the effect of making the change you mention is that
- Any user can create and delete files in any directory under /home (so if you have 5 users with their own home directories, they will all be able to delete each others' files, for example).

Beyond this the effect depends on whether a user is a member of the group that the dir/file is owned by. Group permissions override world permissions.

For example, if a file runme.sh had permissions 767, owned by user joe and group staff, user joe would be able to execute the script and so would any user not in group staff. Users in group staff would not be able to execute the script (but could still edit it and, if they had write permission to the parent directory, could delete it).

Dangerous? Shouldn't be as long as the users don't have any special privelages and the security is reasonably tight (e.g no SUID files lying around). Secure? Only if allowing all users full access to each others' files is what you want to achieve.
 
  


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
Where's /etc/security/console.perms? NetRAVEN5000 Slackware 15 06-20-2005 04:59 PM
.ICEauthority. Why does it's perms change?!? fuzzyash Linux - Software 2 05-01-2005 03:00 AM
changing perms on hd bernstein DamnSmallLinux 6 04-04-2005 09:47 PM
cdrw perms doralsoral Linux - Software 0 05-06-2004 10:26 PM
ripperX perms doralsoral Linux - Software 5 05-02-2004 11:22 AM

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

All times are GMT -5. The time now is 11:05 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
Open Source Consulting | Domain Registration