LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 06-09-2004, 03:54 AM   #1
powadha
Member
 
Registered: Nov 2003
Distribution: Debian SID
Posts: 649

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)

Regards

Last edited by powadha; 06-09-2004 at 04:18 AM.
 
Old 06-09-2004, 06:17 AM   #2
Philippe
Member
 
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.

Philippe
 
Old 06-09-2004, 12:56 PM   #3
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Rep: Reputation: 30
http://www.linuxforums.org/forum/viewtopic.php?p=6967
 
Old 06-09-2004, 04:45 PM   #4
powadha
Member
 
Registered: Nov 2003
Distribution: Debian SID
Posts: 649

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, 04:54 PM   #5
llamakc
Member
 
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, 12:42 PM   #6
powadha
Member
 
Registered: Nov 2003
Distribution: Debian SID
Posts: 649

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.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
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

[homes]
read only = No
browseable = No

[test]
path = /home/test
read only = No
guest ok = Yes
eugene@debian:~$
 
Old 06-11-2004, 12:45 PM   #7
powadha
Member
 
Registered: Nov 2003
Distribution: Debian SID
Posts: 649

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

ADSL
|
|
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.
 
  


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


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