I have set up a new samba share on my machine. Using YaST, I setup /home/share as a shared directory. From a Windows machine, I can get to the directory and see the contents. However, if I try to write to the share, I get Access Denied. I own the directory and it's set to 777. I can get to and write to my home dir, /home/dan, with no problems. This is the relevant part of smb.conf: [shared] comment = shared path = /home/share browseable = no guest ok = no printable = no These settings match the matching parts of the home directory settings. What am I missing? I've tried to add valid users = %S create mask = 0640 directory mask = 0750 like the home directory settings have, but it makes no difference. I used smbpasswd to set a password, but get no challenge on the Windows machine. Any help appreciated. Dan
Steps 1,2&3:
(1) The user must have a valid user account and password on the linux box;
(2) The user must have the "same" username and password in smbpasswd; and
(3) The windows user name and password must mach the above.
--
David C. Rankin, J.D., P.E.
RANKIN * BERTIN, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
(936) 715-9333
(936) 715-9339 fax
www.rankin-bertin.com
--
----- Original Message -----
From: "Dan Weisenstein"
I have set up a new samba share on my machine. Using YaST, I setup /home/share as a shared directory. From a Windows machine, I can get to the directory and see the contents. However, if I try to write to the share, I get Access Denied. I own the directory and it's set to 777. I can get to and write to my home dir, /home/dan, with no problems. This is the relevant part of smb.conf:
[shared] comment = shared path = /home/share browseable = no guest ok = no printable = no
These settings match the matching parts of the home directory settings. What am I missing? I've tried to add
valid users = %S create mask = 0640 directory mask = 0750
like the home directory settings have, but it makes no difference. I used smbpasswd to set a password, but get no challenge on the Windows machine. Any help appreciated.
Dan
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Thursday 06 May 2004 18:51, Dan Weisenstein wrote:
I have set up a new samba share on my machine. Using YaST, I setup /home/share as a shared directory. From a Windows machine, I can get to the directory and see the contents. However, if I try to write to the share, I get Access Denied. I own the directory and it's set to 777. I can get to and write to my home dir, /home/dan, with no problems. This is the relevant part of smb.conf: <SNIP>
Hi Dan! The log files are your friends. I have used them many times to fix Samba problems. In /etc/init.d/smb, set debugging way up: startproc -p ${PID_FILE} ${DAEMON_DIR}${BIN_SUFFIX}/${SMBD_BIN} -D -d 9 -s ${SMB_CONF} Maybe -d 5 would be enough, but I always go overboard. Then check /var/log/ samba/log.smbd. I just set up an XP system for my son with a Samba directory like this: [music] comment = All Data path = /data3/Music read only = No create mask = 0640 directory mask = 0750 browseable = No valid users = jimmo,beldaniel Maybe trying coping the home directory share 1:1 just to see if that works. Do you have an explicite share for /home/dan or are you using [homes]? If so, does an explicite share work? Sorry, I don't have an immediate answer, but I am sure the debugging in the log files will get you closer. Regards, jimmo -- --------------------------------------- "Be more concerned with your character than with your reputation. Your character is what you really are while your reputation is merely what others think you are." -- John Wooden --------------------------------------- The Linux Tutorial needs your help! Visit us at http://www.linux-tutorial.info
Dan Weisenstein wrote:
I have set up a new samba share on my machine. Using YaST, I setup /home/share as a shared directory. From a Windows machine, I can get to the directory and see the contents. However, if I try to write to the share, I get Access Denied. I own the directory and it's set to 777. I can get to and write to my home dir, /home/dan, with no problems. This is the relevant part of smb.conf:
[shared] comment = shared path = /home/share browseable = no guest ok = no printable = no
These settings match the matching parts of the home directory settings. What am I missing? I've tried to add
valid users = %S create mask = 0640 directory mask = 0750
like the home directory settings have, but it makes no difference. I used smbpasswd to set a password, but get no challenge on the Windows machine. Any help appreciated.
Dan
I'm going to assume that your username is set up and you have used smbpasswd to set a password for samba. I'm guessing that since you can get to your home directory, this is as it should be. From the above, it looks like you need to add a write list. Below is one of mine. [public] comment = Public Share path = /export/public write list = @public inherit permissions = Yes map archive = No This would let any user in the public group to have write access. The inherit permissions statement only works if the map archive statement is included and set to no. I set the group ownership of the directory to public and then "chmod g+s /export/public". This allows for a share that works well both as a samba share and an NFS share. -- Louis D. Richards LDR Interactive Technologies
participants (4)
-
Dan Weisenstein
-
David Rankin
-
James Mohr
-
Louis Richards