LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-03-2003, 05:07 PM   #1
yong_sa
Member
 
Registered: Jan 2003
Posts: 34

Rep: Reputation: 15
Arrow 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
 
Old 06-03-2003, 05:09 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Check your iptables/ipchains rules to see if ports 137,138 & 139 are open:
iptables -L
ipchains -L
 
Old 06-03-2003, 05:27 PM   #3
yong_sa
Member
 
Registered: Jan 2003
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
Old 06-03-2003, 09:55 PM   #4
yong_sa
Member
 
Registered: Jan 2003
Posts: 34

Original Poster
Rep: Reputation: 15
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
 
Old 06-05-2003, 12:14 PM   #5
yong_sa
Member
 
Registered: Jan 2003
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
Old 06-05-2003, 12:53 PM   #6
yong_sa
Member
 
Registered: Jan 2003
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
Old 07-09-2005, 02:29 PM   #7
linuxblacksmith
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
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
 
  


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
samba/swat access denied bob_man_uk Linux - Software 2 10-19-2005 03:12 AM
Samba - access denied on windows suco Linux - Software 6 09-26-2005 10:30 PM
Can't access my linux share through samba. I get permission denied. mlsbraves Linux - Software 1 08-16-2005 07:59 PM
Samba - Access denied aikempshall Linux - Networking 22 08-24-2004 06:50 AM
Access denied XP samba shares djtsa Linux - Software 0 10-02-2003 06:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:53 AM.

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
Open Source Consulting | Domain Registration