My user is logged in to the Samba Server. smb.conf has the following: [homes] comment = Home Directories read only = No create mask = 0775 directory mask = 0775 browseable = No writeable = Yes The files in the user's home directory are set to chmod 777. What do I need to do to enable the user to write to her Directory?
Michele Petrazzo - Unipex
2010-Jan-12 17:58 UTC
[Samba] Documents in home folder 'Read Only'
Dave Coventry wrote:> My user is logged in to the Samba Server. > > smb.conf has the following: > > > [homes] > comment = Home Directories > read only = No > create mask = 0775 > directory mask = 0775 > browseable = No > writeable = Yes > > The files in the user's home directory are set to chmod 777. > > What do I need to do to enable the user to write to her Directory?So strange. For me try: - look at the log files and see with which "unix user" your user log in. - on server, login as root, "su - unix_user" and try to open/modify a file in the user home directory. For me you can't, so it's a permission problem since the configuration are ok. Michele
Dave Coventry wrote:> My user is logged in to the Samba Server. > > smb.conf has the following: > > > [homes] > comment = Home Directories > read only = No > create mask = 0775 > directory mask = 0775 > browseable = No > writeable = Yes > > The files in the user's home directory are set to chmod 777. > > What do I need to do to enable the user to write to her Directory? >Who owns the files in the user's home directory? What group do they belong to? Is the user a member of that group? Has the user account been enabled? What happens when you do pdbedit -v <username> on the Samba server?
Dave Coventry wrote:> Hi Gary, thanks for taking the time... > > 2010/1/12 Gary Dale <garydale at rogers.com>: > >> Who owns the files in the user's home directory? What group do they belong >> to? Is the user a member of that group? Has the user account been enabled? >> > > > She does: (her name is Patience) > > chown patirnce:patience -R /hom/patience >I hope you've got some typos in the above line and it's not what you actually typed. :)> >> What happens when you do pdbedit -v <username> on the Samba server? >> > > server:~# pdbedit -v patience > Unix username: patience > NT username: > Account Flags: [U ] > User SID: S-1-5-21-1378684879-2305813817-1546644450-3010 > Primary Group SID: S-1-5-21-1378684879-2305813817-1546644450-513 > Full Name: Kebonye Patience Vry,,, > Home Directory: \\server\patience > HomeDir Drive: > Logon Script: > Profile Path: \\server\patience\profile > Domain: SERVER > Account desc: > Workstations: > Munged dial: > Logon time: 0 > Logoff time: never > Kickoff time: never > Password last set: Mon, 14 Dec 2009 08:17:20 SAST > Password can change: Mon, 14 Dec 2009 08:17:20 SAST > Password must change: never > Last bad password : 0 > Bad password count : 0 > Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFHave you checked the id mapping and group mapping for her SIDs?
Sorry, I fell into the trap of using the 'Reply' gmail button instead of 'Reply All'. :( ---------- Forwarded message ---------- From: Dave Coventry <dgcoventry at gmail.com> Date: 2010/1/13 Subject: Re: [Samba] Documents in home folder 'Read Only' To: Gary Dale <gary at extremeground.com> Hi Gary. 2010/1/12 Gary Dale <garydale at rogers.com>:>> chown patirnce:patience -R /hom/patience >> > > I hope you've got some typos in the above line and it's not what you > actually typed. ?:)Yep. Small laptop keyboard; big fingers.> Have you checked the id mapping and group mapping for her SIDs?How do I get a list of Samba users and mappings? I am now getting the following errors: tail /var/log/samba/log.reception [2010/01/13 08:34:46, ?0] auth/pampass.c:smb_pam_accountcheck(791) ?smb_pam_accountcheck: PAM: Account Validation Failed - Rejecting User patience! [2010/01/13 08:59:07, ?0] auth/pampass.c:smb_pam_account(583) ?smb_pam_account: PAM: UNKNOWN PAM ERROR (9) during Account Management for User: patience [2010/01/13 08:59:07, ?0] auth/pampass.c:smb_pam_accountcheck(791) ?smb_pam_accountcheck: PAM: Account Validation Failed - Rejecting User patience! [2010/01/13 08:59:32, ?0] auth/pampass.c:smb_pam_account(583) ?smb_pam_account: PAM: UNKNOWN PAM ERROR (9) during Account Management for User: patience [2010/01/13 08:59:32, ?0] auth/pampass.c:smb_pam_accountcheck(791) ?smb_pam_accountcheck: PAM: Account Validation Failed - Rejecting User patience!