LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   samba shares inaccessible in windows? (https://www.linuxquestions.org/questions/linux-newbie-8/samba-shares-inaccessible-in-windows-916616/)

alirezan1 12-01-2011 02:44 PM

samba shares inaccessible in windows?
 
Hello

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
rlimit_max (1024below minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[public]"
Processing section "[ALIREZA]"
Loaded services file OK.
Server roleROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        
workgroup test
        server string 
Samba Server Version %v
        security 
SHARE
        log file 
= /var/log/samba/log.%m
        max log size 
50

[homes]
        
comment Home Directories
        read only 
No
        create mask 
0700
        directory mask 
0700
        guest ok 
Yes

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

[public]
        
comment = Public Stuff
        path 
= /home/samba
        read only 
No
        guest ok 
Yes

[ALIREZA]
        
comment test work directory
        path 
= /home/alireza/test
        read only 
No
        guest ok 
Yes 

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.

Thanks

alirezan1 12-01-2011 02:51 PM

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?

lonesoac0 12-01-2011 04:06 PM

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.

coolsg5636 12-01-2011 04:50 PM

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

browsable=yes

-Sandy


All times are GMT -5. The time now is 06:51 AM.