LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   samba logons (https://www.linuxquestions.org/questions/linux-software-2/samba-logons-145380/)

joel112 02-12-2004 03:39 PM

samba logons
 
i have a samba server, serving both UNIX/Linux and windows machines, and i have a couple of problems. Heres my smb.conf:


# Global parameters
[global]
server string = Aries Fileserver
socket options = TCP_NODELAY
workgroup = GBNET
os level = 20
interfaces = 192.168.0.104/255.255.255.192
null passwords = yes
encrypt passwords = yes
security = user

[web]
comment = Web
path = /home/www/
valid users = joel,root
read only = No
create mask = 0777
directory mask = 0777

[Music]
comment = Music
path = /data/music
guest ok = Yes
read only = Yes

[Unsorted]
comment = Unsorted Music
path = /data/music-unsorted
writable = yes
public = yes
only guest = yes

[gallery]
comment = Gallery
path = /home/www/sites/Gallery/picKLE-albums
writable = yes
public = yes
only guest = Yes

my problem is this, i want to protect access to the web share, to certain users, but i dont want the other users to have to log in in order to access the rest of the shares. is there any way i can make them only have to log into the web share.

second problem is that on linux, my users cannot write to gallery/unsorted/music. they keep getting permisiion denied. i have chowned and chgrped the mount points on the local systems, but they cannot create folders and then write to them, they need to be chmodded on the server before they can be written to. they cannot delete files either, they get permission denied writing to their respective trash folders on the network shares.

any help would be muchly appreciated

Joel

Thetargos 02-12-2004 04:45 PM

If you use a tool like SWAT, you may restrict access by share rather than globally.

joel112 02-12-2004 09:51 PM

been messing with swat for a while now, and i dont seem to be getting anywhere. got to this so far

# Global parameters
[global]
workgroup = GBNET
server string = Aries Fileserver
interfaces = 192.168.0.104/255.255.255.192
null passwords = Yes
domain master = No

[web]
comment = Web
path = /home/www/
valid users = joel
admin users = joel
write list = joel
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
inherit permissions = Yes

[Music]
comment = Music
path = /data/music
inherit permissions = Yes
guest only = Yes
guest ok = Yes

[Unsorted]
comment = Unsorted Music
path = /data/music-unsorted
read only = No
create mask = 0777
directory mask = 0777
inherit permissions = Yes
guest only = Yes
guest ok = Yes

[gallery]
comment = Gallery
path = /home/www/sites/Gallery/picKLE-albums
read only = No
create mask = 0777
directory mask = 0777
inherit permissions = Yes
guest only = Yes
guest ok = Yes

[homes]
comment = Home Dir

i think the web one works, but the rest it always asks for a pass, and if i login with blank password i cant do anything, and the homes section doesnt seem to work properly.

anyone got any ideas?

muah 02-13-2004 06:28 AM

Maybe u should add
Quote:

guest account = smbguest
to your smb.conf. Cant remember anything else at this moment but I m going to install samba in similar configuration on my computer on sunday so I ll let u know.

DaFrEQ 02-13-2004 07:33 AM

Quote:

second problem is that on linux, my users cannot write to gallery/unsorted/music. they keep getting permisiion denied
Try adding the users to the smb.conf file:
write list = user1 user2 user3 ...

I believe they need to be listed in order to write even tho you have writeable = yes.


All times are GMT -5. The time now is 04:54 AM.