LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 02-02-2011, 11:45 AM   #1
hamedhsn
Member
 
Registered: Feb 2010
Distribution: opensuse 11.2
Posts: 57

Rep: Reputation: 0
changing home directory permission in user management after user created in suse(KDE)


hi
i created a user but i forgot to change the home directory permission.so after user created when i go to the user and group mangement i cant see that permission filed related to the home permission directory.
my purpose is to stop accessing other user to my home directory,how it can be possible??
i appreciate in advance..
thanks

Last edited by hamedhsn; 02-02-2011 at 12:00 PM.
 
Old 02-02-2011, 11:53 PM   #2
__raHulk
Member
 
Registered: Apr 2010
Location: Mumbai
Distribution: RHEL, Debian, Fedora, Ubuntu
Posts: 39
Blog Entries: 1

Rep: Reputation: 16
Quote:
my purpose is to stop accessing other user to my home directory,how it can be possible??
That is by default in most (or all the distros i guess) ie. other users cannot access anything in your home directory, the only exception being the root user.
 
Old 04-05-2011, 07:01 AM   #3
horafaust
LQ Newbie
 
Registered: Apr 2011
Location: Cavite, Philippines
Distribution: opensuse
Posts: 2

Rep: Reputation: 0
Question Same issue here.

I created users from each of my employees. Then I tested if I can access other users' folder using Dolphin, I wasn't able to(which is good). But when I tried typing from Firefox /home I was able to access other users' folder. Not only that, I did all these using a user login(not root/admin). How do I configure users so that they won't be able to look at each others' folder?
 
Old 04-05-2011, 09:12 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,287

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
Go into /home and issue
Code:
ls -l
and look at the results, typically
Code:
drwxr-xr-x  2 user group ... <dirname>
First, remove world ('other') access
Code:
chmod o=  <dirname>
On RH (& likely RH derived) each user defaults to having their own private group, so that's as far as you need to go.
On a lot (most ?) *nix systems, users default to the same group unless otherwise specified, so remove group access
Code:
chmod g=  <dirname>
HTH
 
1 members found this post helpful.
Old 04-06-2011, 09:18 PM   #5
horafaust
LQ Newbie
 
Registered: Apr 2011
Location: Cavite, Philippines
Distribution: opensuse
Posts: 2

Rep: Reputation: 0
Thumbs up

It works!
 
  


Reply


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
[SOLVED] 'Could not chdir to home directory /home/[user]: Permission denied' arashi256 Linux - Newbie 25 11-11-2011 09:29 AM
NFS problem: "Could not chdir to home directory /home/USER: Permission denied" sumanc Linux - Server 4 07-22-2010 04:12 PM
Fedora 10, accidently created a user with the same home directory, is there any hope? Sanderlin Linux - Newbie 4 07-27-2009 11:54 AM
Defining home directory of a newly created user?? ggarrette Linux - Newbie 4 07-01-2008 02:47 PM
How can I set the permission on the home directory when creating an user crisostomo_enrico Solaris / OpenSolaris 4 09-26-2007 06:24 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration