Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-25-2006, 11:03 AM   #1
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 37
Samba share is not accessible

hi all:
I am configuring samba server but facing this error message whenever I click on share name in windows:
 \\samba_server_name\share_name is not accessible
 The network name cannot be found
Both in linux & windows, I have a user having same username and password.

Created samba password for that user using
# smbpasswd tanveer

testparm output:
[root@server ~]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[tmp]"
Processing section "[agni_viva]"
Loaded services file OK.
WARNING: passdb expand explicit = yes is deprecated
Press enter to see a dump of your service definitions

        server string = Samba Server on <>
        log file = /var/log/samba/%m.log
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = /etc/printcap
        dns proxy = No
        wins support = Yes
        hosts allow = 192.168.1., 127.
        cups options = raw

        comment = Home Directories
        valid users = %S
        read only = No

        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No

        comment = Temporary file space
        path = /tmp
        read only = No
        guest ok = Yes

        comment = cool
        path = /home/tanveer/agni
        read only = No
        guest ok = Yes
[root@server ~]#
Important thing is I can browse files only the tmp share but cant browse the shares tanveer,homes or agni.

Is it something with the permissions settings? The permission set for /tmp is
drwxrwxrwt  16 root root  4096 Sep 25 21:30 tmp
I also gave permission 777 in agni but still same error as above.

Thanks in advance
Old 09-25-2006, 02:27 PM   #2
Registered: Oct 2004
Distribution: Fedora, Debian, Free BSD
Posts: 71

Rep: Reputation: 15
Have you enabled SELINUX.. Most of the time the permission problem arises due to SELINUX being enabled. If that is the case then assign the appropriate SELINUX permissions.

Remember Samba will never override Unix or SELINUX permissions

Also are you configuring samba for WORKGROUP or Domain ???

Last edited by zeeshanhayat; 09-25-2006 at 02:32 PM.
Old 09-25-2006, 02:51 PM   #3
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 37
thanks. Problem solved.
I didn't know that I have to stop SELinux also, I was just stopping my iptables.


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 - Windows XP Problem (//Samba is not accessible) Covenent Linux - Networking 20 08-11-2011 04:07 PM
Samba only accessible by IP ALInux Linux - Networking 2 05-18-2006 06:32 AM
Samba not accessible tyrie Linux - Newbie 5 10-13-2005 08:28 AM
Samba share accessible to winxp but not mdk 10.1 joseph_k Mandriva 4 03-31-2005 08:59 AM
Samba share not accessible Quercus Linux - Software 2 12-07-2003 08:43 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration