LinuxQuestions.org
Visit Jeremy's Blog.
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


Closed Thread
  Search this Thread
Old 08-18-2005, 11:11 AM   #16
btmiller
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, 11:29 AM   #17
jtshaw
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, 11:40 AM   #18
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,279
Blog Entries: 8

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
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, 12:08 PM   #19
MasterC
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.

http://www.linuxquestions.org/rules.php

http://www.linuxquestions.org/questi...hreadid=354426
 
  


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

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

All times are GMT -5. The time now is 02:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration