Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 06-09-2004, 02:54 AM   #1
Registered: Nov 2003
Distribution: Debian SID
Posts: 651

Rep: Reputation: 31
permissions home directories

I was experimenting on permissions and I kinda srewed up the permissions for my home dir. What are the default permissions in debian for the home folder? (and how to change them back?)
I guess I have to do a chmod but can't find the right one (as user I'm not able to log in anymore)


Last edited by powadha; 06-09-2004 at 03:18 AM.
Old 06-09-2004, 05:17 AM   #2
Registered: Sep 2003
Location: Chiangmai, Thailand
Posts: 53

Rep: Reputation: 15
On Redhat 9, but I don't think this is specific to any distributions, it is 755.

Log as root for example, and type chmod 755 /home/your_user .

$ ls -ld /home/your_user
drwxr-xr-x 52 your_user users 4096 Jun 6 16:35 /home/your_user

Now if your are speaking about /home directory :

$ ls -ld /home
drwxr-xr-x 12 root root 4096 Nov 11 2003 /home

So this is the same : 755 but the owner is root.

After this all depends about how much your experiment went far ... ;-)

Hope this helps.

Old 06-09-2004, 11:56 AM   #3
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel
Posts: 331

Rep: Reputation: 30
Old 06-09-2004, 03:45 PM   #4
Registered: Nov 2003
Distribution: Debian SID
Posts: 651

Original Poster
Rep: Reputation: 31
Just brilliant!!! chmod 755 /home fixed all my problems and I get a good list of chmod commands to play with!
Thanx guys, now let's get this samba devil to be as happy as me (or in other words: write to that damn home dir will ya you stupid XP freak!)
Old 06-09-2004, 03:54 PM   #5
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
Which version of Samba are you using? How about posting the dump of `testparm`?
Old 06-11-2004, 11:42 AM   #6
Registered: Nov 2003
Distribution: Debian SID
Posts: 651

Original Poster
Rep: Reputation: 31
I'm using samba version from SID, so must be the latest available to debian.

Here's the dump (problem still is that I can't write from the XP box on the debian box test dir)

eugene@debian:~$ testparm
Load smb config files from /etc/samba/smb.conf
Can't find include file /etc/samba/dhcp.conf
Processing section "[homes]"
Processing section "[test]"
Loaded services file OK.
Press enter to see a dump of your service definitions

# Global parameters
workgroup = OFFICE
server string = %h server (Samba %v)
security = SHARE
obey pam restrictions = Yes
passdb backend = tdbsam, guest
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
log file = /var/log/samba/log.%m
max log size = 1000
server signing = auto
dns proxy = No
ldap ssl = no
panic action = /usr/share/samba/panic-action %d
invalid users = root
strict locking = No
include = /etc/samba/dhcp.conf

read only = No
browseable = No

path = /home/test
read only = No
guest ok = Yes
Old 06-11-2004, 11:45 AM   #7
Registered: Nov 2003
Distribution: Debian SID
Posts: 651

Original Poster
Rep: Reputation: 31
I haven't mentioned in this thread that my network look like

Clarkconnect box------win XP
debian box

Clark uses an older version of samba but for some strange reason I can write to shared dirs on that box from XP. Same settings won't work on debian it seems. I did read that the ' user' nobody on debian doesn't have writing permissions so perhaps I have to look there for the prob. Kinda out of ideas though.


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
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
protecting home directories munkie_poo Linux - Security 3 07-04-2005 04:55 AM
home directories permissions black_man Debian 1 11-20-2004 09:48 AM
Home directories and AD authentication Kerry Davis Linux - Networking 5 07-14-2004 10:26 AM
Home Directories - Backup kwigibo Linux - General 1 08-23-2002 08:29 AM

All times are GMT -5. The time now is 09:02 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