1833589 Members
3874 Online
110061 Solutions
New Discussion

Samba Problem

 
Rene_17
Regular Advisor

Samba Problem

Smbd daemon errorlog:

[2003/09/23 08:40:52, 0] smbd/service.c:(597)
pc17-c803 (138.232.81.32) Can't change directory to /tmp (Permission denied)

Each time I want to connect to the server the connection is not working and the errormessage is writed in the errorlog each time !
The Permission of the /tmp directory is okay (777) ! It´s not only my computer. All ohters also can´t connect to the server and the server write the same message !
I have added unix users and smb users but the same happened.

smb.conf:

[global]
workgroup = iff
server string = Samba Server
log file = /var/opt/samba/log.%m
max log size = 1000
security = share
encrypt passwords = no
guest account = pcguest
guest ok = yes
socket options = TCP_NODELAY
local master = yes
printing = hpux
print command = /usr/bin/lp -d%p %s ; /usr/bin/rm %s
lpq command = /usr/bin/lpstat -p %p
lprm command = /usr/bin/cancel %p-%j
read only = no
preserve case = yes
short preserve case = no
dos filetime resolution = yes
syslog = 0
interfaces = 138.232.81.3/255.255.255.192
hosts deny = all
hosts allow = 138.232.81. 127.
[homes]
comment = Home Directories
browseable = no
read only = yes
create mode = 0750
[tmp]
comment = Temporary Filespace
path = /tmp/samba
read only = no
public = yes
[iff]
comment = iff User
path = /home/samba/iff
public = no
writable = yes
printable = no
[LJ40]
printer = LaserJet40
comment = HP LaserJet 4000N
printing = HPUX
path = /tmp/samba
printable = yes
guest ok = yes
writable = no
create mode = 0700
[LJ43]
printer = LaserJet43
comment = HP LaserJet 4300tn
printing = HPUX
path = /tmp/samba
printable = yes
guest ok = yes
writable = no
create mode = 0700
[DJ16]
printer = DeskJet16
comment = HP DeskJet 1600CM
printing = HPUX
path = /tmp/samba
printable = yes
guest ok = yes
writable = no
create mode = 0700
[DJ25]
printer = DeskJet25
comment = HP DeskJet 2500CM
printing = HPUX
path = /tmp/samba
printable = yes
guest ok = yes
writable = no
create mode = 0700
[Lex1275]
printer = Lex1275
comment = Lexmark Optra SC 1275
printing = HPUX
path = /tmp/samba
printable = yes
guest ok = yes
writeable = no
create mode = 0700

The daemons are runni
9 REPLIES 9
RAC_1
Honored Contributor

Re: Samba Problem

Try changing permissions to 1777 and post.
There is no substitute to HARDWORK
Rene_17
Regular Advisor

Re: Samba Problem

I changed the permission but it don´t work !

What´s the one befor the 777
Rene_17
Regular Advisor

Re: Samba Problem

The windows reports that I have to few privileges to connect to the server !

On the other server with hpux11i with samba 2.0.7 it works, but with samba 2.2.8a it is a problem !

Could it be that the password encryption is the problem ?
RAC_1
Honored Contributor

Re: Samba Problem

1777 perms are stick bit set.

Also try after setting encrytp passwords - yes.

For clients as win xp it requires setting as encrypt passwords.

Are upiy getting any other error message?
There is no substitute to HARDWORK
T G Manikandan
Honored Contributor

Re: Samba Problem

What is

$TMPDIR return?

Just do a
$unset TMDIR

REstart the smbd
Then do a
$TMPDIR=/tmp
$export TMPDIR


REvert
Rene_17
Regular Advisor

Re: Samba Problem

It doesn ´t work !
I will try a while !
I think I should use the working version of the other servers (2.0.7)
Rene_17
Regular Advisor

Re: Samba Problem

Should I work with the CIFS Server form HP ?
Rene_17
Regular Advisor

Re: Samba Problem

iff2:/var/opt/samba # smbclient -L localhost -U%
added interface ip=138.232.81.3 bcast=138.232.81.63 nmask=255.255.255.192
Domain=[IFF] OS=[Unix] Server=[Samba 2.2.8a]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

without the -U% option the samba server works:

iff2:/var/opt/samba # smbclient -L localhost
added interface ip=138.232.81.3 bcast=138.232.81.63 nmask=255.255.255.192
Password:
Domain=[IFF] OS=[Unix] Server=[Samba 2.2.8a]

Sharename Type Comment
--------- ---- -------
LJ40 Printer HP LaserJet 4000N
LJ43 Printer HP LaserJet 4300tn
DJ16 Printer HP DeskJet 1600CM
DJ25 Printer HP DeskJet 2500CM
Lex1275 Printer Lexmark Optra SC 1275
IPC$ IPC IPC Service (Samba Server)
ADMIN$ Disk IPC Service (Samba Server)

Server Comment
--------- -------
IFF0 Samba Server
IFF2 Samba Server

Workgroup Master
--------- -------
IFF IFF0



Zeev Schultz
Honored Contributor

Re: Samba Problem

This one was for 2.2.7 but I'd check for 2.2.8 :

http://www.faqchest.com/linux/samba-l/smb-02/smb-0211/smb-021135/smb02112515_23586.html

credit to Jerry Carter
So computers don't think yet. At least not chess computers. - Seymour Cray