LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 15
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
 
Old 12-01-2011, 03:51 PM   #2
alirezan1
Member
 
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
lonesoac0
Member
 
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
coolsg5636
Member
 
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)

browsable=yes

-Sandy
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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