What am I missing in SAMBA configuration

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
mikej
Posts: 3
Joined: 2008/03/18 20:20:37

What am I missing in SAMBA configuration

Post by mikej » 2008/03/18 20:27:12

I keep getting these errors

[2008/03/18 15:42:25, 0] smbd/service.c:make_connection_snum(1003)
'/home/sharevol' does not exist or permission denied when connecting to [sharevol] Error was Permission denied
[2008/03/18 15:42:26, 0] smbd/service.c:make_connection_snum(1003)
'/home/sharevol' does not exist or permission denied when connecting to [sharevol] Error was Permission denied
[2008/03/18 15:42:28, 0] smbd/service.c:make_connection_snum(1003)
'/home/sharevol' does not exist or permission denied when connecting to [sharevol] Error was Permission denied

The path does exsist
ls -ld /home/sharevol
drwxrwxr-x 4 root domain users 4096 Mar 18 15:02 /home/sharevol


getent passwd and getent group do show the correct info.


Here is the config

/etc/samba/smb.conf

[global]
workgroup = CORP
netbios name = CORPFP01
server string = LDAP File and Print Server
printcap name = /etc/printcap
load printers = yes
cups options = raw
log file = /var/log/samba/%m.logroot\
max log size = 50
security = ADS
password server = corpdc05
realm= CORP.DOMAIN.COM
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = yes
Winbind enum groups = yes
Winbind enum users = yes

[sharevol]
comment = Main Folder
path = /home/sharevol
writeable = yes
browseable = yes
valid users = @"corp\domain users"

[printers]
comment = all printers
path = /var/spool/samba
guest ok = yes
printable = yes
use client driver = yes
browseable = yes

[homes]
comment = Home Directory
path = /home/Users/%U
valid users = @"corp\domain users"
read only = No
browseable = Yes
writeable = yes

[PDFprinter]
comment = PDF Converter
path = /var/spool/samba
printable = Yes
print command = /usr/sbin/pdfprint %s
lpq command =
lprm command =

scottro
Forum Moderator
Posts: 2456
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: What am I missing in SAMBA configuration

Post by scottro » 2008/03/18 23:53:50

Hopefully, this is a test environment. If so, comment out the active users line and see if they can connect.

If that works, then try playing with the valid users line. I don't know about the quotes around it, I use the typical windbind separator = + and then have @corp+allowed_users (no quotes).

I did a page on this recently--99 percent of it is from the samba wiki but there might be something in there that might help.

http://home.nyc.rr.com/computertaijutsu/adsamba.html

Hrrm, might also be the pam stuff. Did you configure pam and kerberos?

mikej
Posts: 3
Joined: 2008/03/18 20:20:37

Re: What am I missing in SAMBA configuration

Post by mikej » 2008/03/19 13:02:59

I followed your page up to "//SAMSERV/sales -Ujohn%2468". At this point my server states sharevol: no such file or directory.

pwd
/home/sharevol

scottro
Forum Moderator
Posts: 2456
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: What am I missing in SAMBA configuration

Post by scottro » 2008/03/19 14:37:33

http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/diagnosis.html

goes through the various troubleshooting possibilities.

It looks OK, from your description. I would try a few things. I would run testparm, I might even comment out the whole sharedvol thing and retype it to make sure that I hadn't made any typing errors that my eye is refusing to catch.

Samba isn't seeing that share, and I'm not sure why.

mikej
Posts: 3
Joined: 2008/03/18 20:20:37

Re: What am I missing in SAMBA configuration

Post by mikej » 2008/03/19 16:38:56

I deleted everything under /home and recreate the folders and reset security. I then deleted and remade everything from [sharevol] down in smb.conf. All is working well at this time.


Thanks for your help.

scottro
Forum Moderator
Posts: 2456
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: What am I missing in SAMBA configuration

Post by scottro » 2008/03/19 17:06:17

Great. It was probably some weird typo that your eye kept missing, or some invisible space or other character. I've had that happen a few times--for example typing diff file1 file2 shows me what seem to be two identical lines.
Glad it worked. (Though I guess I can't really claim credit.) )

Post Reply

Return to “CentOS 4 - Server Support”