LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Struggling With Smb.conf (http://www.linuxquestions.org/questions/linux-networking-3/struggling-with-smb-conf-441811/)

FLX 05-05-2006 03:32 AM

Struggling With Smb.conf
 
Hey,

I have a fedora core 5 box and i'm setting up samba so users can store their own files either public or private.

here is a lil architecture i would like to have:

Linux Server (everyone can view the folders, but needs to authenticate for some)
|
|
+----[Public] - everyone can view, guests also
|
|
+----[Private] - Asks for authentication, and goes to the appropriate user folder (e.g /private/flx) with /private/%U. Example: if i login with the user "test01" the Private folder will use /private/test01/

the problem is with [Private] and the fact it already asks for authentication when i approach the server (\\server).
I cant view any of the folders before authenticating

Here is my config:
Code:

[global]
                workgroup = HOMENET
                netbios name = SERVER
                server string = Linux Server
                log file = /var/log/samba/%m.log
                encrypt passwords = yes

[homes]
                read only = no
                browseable = no

[Public]
                comment = Public Directory
                path = /shared
                read only = no
                browseable = yes

[Private]
                comment = User Directory
                path = /private/%U
                read only = no
                browseable = yes

i created flx and nobody.

Anyway, i know that its also possible in windows.
Here is another illustration.

If security = share i can view the folder index and the insides of the Public folder.
But as soon as i want to enter the Private folder i get this:
approaching: \\server\Private
http://img230.imageshack.us/img230/1...titled19nw.jpg
The problem here is that the user field is greyed out!

When i put security = user i can't view the index folders nor the inside of the Public folder because it already asks for permission.
Example:
\\server
http://img238.imageshack.us/img238/1...titled17ns.jpg

Can someone help me with the config?

Thanks in advance.

Regards,

FLX

ALInux 05-05-2006 04:42 AM

I think you need to set the guest user.. in debian it is nobody..but that is set in global..I will send you my smb.conf when I get home i have a similar setup...and security should be set to user


All times are GMT -5. The time now is 04:44 PM.