LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   smb access error (https://www.linuxquestions.org/questions/linux-networking-3/smb-access-error-84429/)

Arch3r 08-22-2003 01:37 AM

smb access error
 
i am using samba version 2.2.7a with rh9.0 and i can see the files and folders of my windows machine but i cant able to open any files from my linux machines in the network and i upgraded to 2.2.8a [samba] and the problem still persist.

here is my smb.conf

[global]
workgroup = netbench
hosts allow = 192.168.0.
printcap name = /etc/printcap
load printers = yes
printing = cups
logfile = /var/log/samba/%m.log
max log size = 0
password server = netbench
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

pam password change = yes
obey pam restrictions = yes

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

security = DOMAIN
dns proxy = no

domain master = no
local master = no
preferred master = no
ostype = 0


[homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = %S
create mode = 0664
directory mode = 0775

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
printable = yes

[datat]
path = /home/datat
writeable = yes
guest ok = yes

[guest]
path = /home/guest
writeable = yes
guest ok = yes

exodist 08-22-2003 01:56 AM

security = DOMAIN
should maybe be
security = user
unless you knwo for sure it is domain (if it is I think you are missing a line, could be wrong though)

also, type "ps -aux | grep smbd" and "ps -aux | grep nmbd" you should see something for each. if not then you need to start samba (type smbd && nmbd) then try it. if still no go do the ps commands again, if they are there you have a config problem, if not you have a bigger problem, debug it by typing smbd -d 2 in one terminal, then nmbd -d 2 in another, then try to access and see what error they close with (if any)

Arch3r 08-22-2003 04:05 AM

[root@linux1 /]# ps -aux | grep smbd
root 2051 0.0 0.8 3808 1024 ? S 12:49 0:00 smbd -D
root 2063 0.0 0.4 3532 580 pts/0 R 12:51 0:00 grep smbd
[root@linux1 /]# ps -aux | grep nmbd
root 2055 0.0 0.5 2648 648 ? S 12:49 0:00 nmbd -D
root 2114 0.0 0.3 3500 424 pts/0 D 12:54 0:00 grep nmbd

[root@linux1 /]# smbd -d 2
[root@linux1 /]# vi /etc/samba/smb.conf
[root@linux1 /]# service smb restart
Restarting SMB services: Shutting down SMB services: [ OK ]
Starting SMB services: [ OK ]
done.
[root@linux1 /]#

nmb is missing

Arch3r 08-22-2003 04:54 AM

smb access error
 
i changed smb.conf to

security = user

and still i cant able to open files through samba.

will_k 08-22-2003 05:54 AM

Did you add your samba users?

[root@anitabath root]#smbpasswd "user"

or you could run

[root@anitabath root]#redhat-config-samba

and add useres that way

Arch3r 08-22-2003 06:10 AM

yes i added the user and added some more user by smbpasswd
as well as redhat-config-samba.

Arch3r 08-22-2003 07:40 AM

openoffice.org cant open filename.doc because openoffice.org cant access files at smb locations. no other applications are available to view this file.

Arch3r 08-22-2003 07:42 AM

still smb file access :

for example:

openoffice.org cant open filename.doc because openoffice.org cant access files at smb locations. no other applications are available to view this file. If you copy this file onto your computer, you may be able to open it.


All times are GMT -5. The time now is 09:23 AM.