Help answer threads with 0 replies.
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!


  Search this Thread
Old 08-15-2004, 12:16 AM   #1
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Rep: Reputation: 15
Locking dirs so only the owner can access them

Howdy guys,

I noticed the machines that i'm using at school have it so only the root user can access the root dir. I like that idea and was wondering how you go about setting it. But not only the root dir, what about other users?

Old 08-15-2004, 12:55 AM   #2
Senior Member
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
This is not wise to do for certain directories (example /usr and company).

But just chmod -R go-rwx /home/usrname

And then only the user will be able to read, write, or cd into their directories.
Old 08-15-2004, 12:57 AM   #3
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
the command would be .....
roots home dir should already be accessible to root only!!

to change the users dir

chmod 700 /home/<user>
<edit/> read the man page first ,before you goof around with

man chmod

Last edited by 320mb; 08-15-2004 at 12:59 AM.


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
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 06:33 AM
How to see just dirs with ls? d1s4st3r Linux - Newbie 3 06-04-2004 11:45 AM
ls, dirs first, files later TroelsSmit Linux - Newbie 4 05-31-2004 12:47 PM
give users access to home dirs jonas73 Linux - Newbie 2 03-16-2004 02:42 AM
removing dirs... chrismiceli Linux - General 5 10-25-2002 06:16 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 AM.

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