Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-01-2011, 03:44 PM   #1
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 150

Rep: Reputation: 15
samba shares inaccessible in windows?


OK so I installed CentOS 6, x64. I set it up as an independent server. It is integrated in a network with NT active directory and users login to their own PC's through the NT Domain. But this server is supposed to be separate from the NT domain (if possible).

I set up Samba server and everything looked alright. It's not my first time setting up samba server but this one is giving me a hard time (I'm not a pro mind you, I set it up at home for my personal use before).

I am trying to set up the shares so that they're accessible to everybody without any user/password asking. Here is my settings as shown by "testparam":

PHP Code:
# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max (1024below minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[public]"
Processing section "[ALIREZA]"
Loaded services file OK.
Press enter to see a dump of your service definitions

workgroup test
        server string 
Samba Server Version %v
        log file 
= /var/log/samba/log.%m
        max log size 

comment Home Directories
        read only 
        create mask 
        directory mask 
        guest ok 

comment All Printers
= /var/spool/samba

comment = Public Stuff
= /home/samba
        read only 
        guest ok 

comment test work directory
= /home/alireza/test
        read only 
        guest ok 
I can see them in windows (windows 7) no problem but as soon as I try to open them, it says the directory is inaccessible. I don't know why. I don't want to set the security level to "user" because in windows it keeps asking username/password but it automatically assumes the users are domain users and the linux doesn't communicate with Windows so it doesn't know anything about the domain and domain authentication. And I don't want to set up domain authentication.

Any idea how I can fix this issue? Any help is appreciated.

Old 12-01-2011, 03:51 PM   #2
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 150

Original Poster
Rep: Reputation: 15
Actually I just tried mounting from Ubuntu, and it says: 'Unable to mount location'...'Failed to mount Windows share'.
I don't know what's going on. Any ideas?
Old 12-01-2011, 05:06 PM   #3
Registered: Jan 2010
Distribution: Ubuntu
Posts: 95

Rep: Reputation: 4
Try chmod 777 SHARED_DIRECTORY. Since the linux system has one user ID and windows has another user ID, the chmod command just might let you access the directory. Additionally, if you only want one user or group to access the shared directory you could try force user = USERNAME or force group = GROUPNAME in the smb.conf file. You would need to restart the samba services once you chmod or add the options to the smb.conf file.
Old 12-01-2011, 05:50 PM   #4
Registered: Sep 2011
Location: Pune,India
Distribution: RHEL ,CentOS, Fedora
Posts: 100

Rep: Reputation: 25
Try adding this option to your current Samba Comfiguration file.
(Path is /etc/samba/smb.conf)




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 shares and windows xp highfructose Linux - Software 1 05-08-2005 03:22 AM
samba shares and windows xp highfructose Linux - Software 0 05-07-2005 06:50 PM
Samba 3.0.6 - How to mount Samba Shares from Windows 2003? kp1 Linux - Software 2 09-10-2004 07:03 PM
Windows ME cannot see Samba shares danedwards11 Linux - Software 7 08-14-2004 07:40 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 06:28 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:48 PM.

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