LinuxQuestions.org
Review your favorite Linux distribution.
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 06-21-2007, 06:12 AM   #1
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Rep: Reputation: 30
user access on Debian


Hi again, having a few problems with user access on Debian. I created two accounts - one for myself and one for my girlfriend. The strange thing is - when she logs in - she can access my folder. I haven't encountered this before.

On Fedora 7 the folders are automatically locked to other users. Why can't I create the same conditions on Debian Etch? Maybe I am missing something really simple?

bookie
 
Old 06-21-2007, 06:17 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,328

Rep: Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364
some distros create a new user AND a new group for each user.
Trad Unix defaulted to the same group eg 'user' for any non-priv user, unless otherwise specified.
Try
ls -l
on the home dirs, and check the group ids in
/etc/passwd
 
Old 06-21-2007, 07:09 AM   #3
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
Hi chrism01

Thanks for the prompt reply. I am in the middle of formating the partitions on the windows os on the same computer, so I will test your info as soon as the formating is finished - and get back to you with the result.

bookie
 
Old 06-21-2007, 07:18 AM   #4
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,279

Rep: Reputation: 302Reputation: 302Reputation: 302Reputation: 302
Hi

In debian, with the default setup, home directories will have a 755 permission - meaning owner can do anything and any other user can read.

If you don't like this, edit "/etc/adduser.conf" and look for where it says:
DIR_MODE=0755
Change it to:
DIR_MODE=0700

That doesn't change the home direcories of users already created. To do that, just use a chmod, like
chmod 700 /home/username
 
Old 06-21-2007, 08:24 AM   #5
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
Hej till Guttorm

Tack så mycket för informationen.

MVH
bookie

PS Sorry, nearly forgot that this is an English forum.
 
  


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
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 12:33 PM
I lose ftp access when I disable shell access for user captainObvious Linux - General 3 11-13-2004 05:49 PM
grant user access to /fat-c & copying users' preferences to another user n0x Linux - Newbie 1 07-04-2004 12:04 AM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM


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