Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


Closed Thread
  Search this Thread
Old 08-18-2005, 10:11 AM   #16
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371

The problem is if you chmod /home to 0700 (using the command jtshaw suggested) you'll change the permissions of /home itself to 0700 so that nobody but root can enter /home. I think what he meant was "chmod go-rwx /home/*" which actually does what you want, I thin. Also, if you set the system default umask to 077 in /etc/profile, all new files created by users will not all group/other access (of course users may change the umask to suit themselves). If you chmod your home directory to 0700, though, that will keep other users from exploring it.
Old 08-18-2005, 10:29 AM   #17
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
DOH... your right... /home/* is what I ment... That is what I get for posting past my bedtime.
Old 08-18-2005, 10:40 AM   #18
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,308
Blog Entries: 8

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Is there any particular disadvantage to just changing the owner of a home directory to the user, and then changing the permissions to 700? For example:

chown nishino:nishino /home/nishino
chmod 700 /home/nishino
Old 08-22-2005, 11:08 AM   #19
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

Closed Thread

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
lock other users from you /home czon Debian 18 08-19-2005 10:04 PM
users are lock out rude_reality Linux - Hardware 9 06-17-2005 12:24 PM
how would i safely lock users to thier home dir? f1uke Linux - Security 2 07-22-2003 01:23 AM
Lock user in their home dir MarleyGPN Linux - Software 1 04-26-2003 05:12 AM
SSH lock users to the Home Directory jasonweb Linux - Security 2 04-11-2003 06:20 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:46 PM.

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