SuSe Linux and Samba Problem - Access is Denied
I am quite new to linux and I have installed Samba on the system from the source. I am able to ping from my windows XP computer to the Linux server, but all printers and folders that are available say - Unable to Connect - Access is denied.
I have added my username to smbpasswd and enabled the account along with the password. Here is my smb.conf file: global] netbios name = MYSERVER server string = "Is It Not Nifty?" workgroup = CRUZ security = share log file = /var/log/samba.log socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 encrypt passwords = yes wins support = yes hosts allow = 192.168.0. printcap name = /etc/printcap load printers = yes smb passwd file = /usr/local/samba/smbpasswd [public] path = /tmp guest ok = yes writeable = yes [printers] comment = All Printerss security = server path = /var/spool/samba browseable = no guest ok = yes guest only = yes valid users = hrcruz printable = yes public =yes writable = no create mode = 0700 Any help would be greatly appreciated: Sincerely, Herbert Cruz hwarang@hrcruz.com |
Check your iptables/ipchains rules to see if ports 137,138 & 139 are open:
iptables -L ipchains -L |
I don't really know what iptables is, but here's what came out:
linux:/usr/local/samba/lib # iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination I tried putting in ipchains -L but I get an error saying unknown file or command. |
Slight improvement...
whenever I double click on the network resource, the login screen pops up. Unfortunately, a login box comes on where the username is greyed out with \\myserver\Guest and a blank password. I haven't set a password, and I can't log in as hrcruz. Any ideas? Herbert Cruz |
Hello:
After creating a new smb.conf file, I can now access file shares without any problems. However, I am still unable to print to my HP Deskjet 812C printer on Suse Linux 8.2 from Windows Xp. When I try to connect to my printer, I get the message: unable to connect to printer - access is denied. Thanks so much for your help in advance. Herbert Cruz Here's my new smb.conf file: [global] workgroup = CRUZ encrypt passwords=yes printcap name = /etc/printcap load printers = yes [test] comment = For testing only, please path = /home/hrcruz/Documents read only = no guest ok = yes [printers] path=/usr/spool/public printable = yes guest account = pcguest public = no writable = no lpq command = /usr/bin/lpq -P%p lprm command = /usr/bin/lprm -P%p %j lppause command = /usr/sbin/lpc stop %p lpresume command = /usr/sbin/lpc start %p create mode = 0700 browseable = no valid users = hrcruz evelyn letty ** End of file. |
Success!!!
Thanks to some other postings, I removed my valid users line and added the following lines: guest ok = yes use client driver = yes print command = lpr -P %p -o raw %s -r I also added a directory /usr/spool/public with chmod +777 I'm so happy! Now Linux does everything that my old Windows server used to do.... and I didn't have to pay Microsoft a dime! Woohoo! Thank you all for your postings in other articles. They really helped. |
For what it is worth on SuSE's SLES9, I just added "use client driver = yes" to the /etc/samba/smb.conf [printers] section, stopped and started smb and nmb by running "rcsmb stop; rcnmb stop" and "rcnmb start; rcsmb start".
[printers] comment = All Printers path = /var/tmp printable = yes create mask = 0600 browseable = no use client driver = yes guest ok = no |
All times are GMT -5. The time now is 08:07 PM. |