Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need SAMBA help, can connect but access is denied

Status
Not open for further replies.

stfaprc

Programmer
Feb 10, 2005
216
US
using Fedora on a SAMBA server.
/etc/samba/smb.conf has:
Code:
[cups_raw]
		hide dot files = no
		valid users = johny,loger
		path = /var/spool/cups
		allow hosts = 192.168.1.

from a windows box (different versions give same results)
D:\>net use * \\ls2\cups_raw 0000000 /user:ls2\johny
Drive F: is now connected to \\ls2\cups_raw.
The command completed successfully.

D:\>dir f:
Network access is denied.

To confuse the issue even more, this setup did function for the first day.

the permissions on the linux box are:
[root@ls2 spool]# ls -l /var/spool/| grep cups
drwx--x--- 5 root sys 376832 Apr 30 04:22 cups
drwxr-xr-x 2 root root 20480 Apr 28 11:52 cups_bu
drwxr-xr-x 5 root root 4096 Feb 18 23:35 cups-pdf

[root@ls2 spool]# ls -la /var/spool/cups/
total 684
drwx--x--- 5 root sys 376832 Apr 30 04:22 .
drwxr-xr-x 22 root root 4096 Apr 29 14:00 ..
-rw-r--r-- 1 root root 14 Apr 30 04:09 cupscron.log
drwxr-xr-x 2 root root 57344 Apr 29 10:12 ftp
drwxr-xr-x 2 root root 217088 Apr 30 04:22 old
-rw-r--r-- 1 root root 44 Apr 21 14:46 smrsh.log
drwxrwx--T 2 root sys 12288 Apr 29 12:32 tmp

so , what is going wrong?
 
looks like you have not created smb users in linux.

I am assuming that your smb security is set to "user"

try:
smbpasswd -a johnny


smbpassswd -a loger

If you make these passwords the same as windoz clients login passwords you won't be asked anymore for a password when connecting to smb shares. That's quick and sweet!

QatQat

--------------------------------------
If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
The permission of /var/spool/cups is 710, meaning people in the sys group can change into, but can't see anything in it.

--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
1: johny is a samba user
2: johny is not a member of the sys group
3: did not see anything in the samba troubleshooting guide.

Keep in mind that this did work at one time.
This is what tail samba/pcname.log shows:
[2009/04/30 12:58:11, 1] [2009/04/30 12:58:11, 1] smbd/service.c:make_connection_snum(941)
pcname (192.168.1.9) connect to service cups_raw initially as user johny (uid=507, gid=507) (pid 6337)
[2009/04/30 12:58:11, 1] smbd/service.c:close_cnum(1141)
pcname (192.168.1.9) closed connection to service cups_raw
[2009/04/30 12:58:15, 1] smbd/service.c:make_connection_snum(941)
pcname (192.168.1.9) connect to service cups_raw initially as user johny (uid=507, gid=507) (pid 6337)
[2009/04/30 12:58:15, 0] smbd/service.c:set_current_service(150)
chdir (/var/spool/cups) failed
[2009/04/30 12:58:19, 1] smbd/service.c:close_cnum(1141)
pcname (192.168.1.9) closed connection to service cups_raw
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top