LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-12-2004, 03:39 PM   #1
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Rep: Reputation: 30
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
 
Old 02-12-2004, 04:45 PM   #2
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
If you use a tool like SWAT, you may restrict access by share rather than globally.
 
Old 02-12-2004, 09:51 PM   #3
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Original Poster
Rep: Reputation: 30
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?
 
Old 02-13-2004, 06:28 AM   #4
muah
Member
 
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 33
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.
 
Old 02-13-2004, 07:33 AM   #5
DaFrEQ
Member
 
Registered: Mar 2002
Location: Earth... for now
Distribution: SuSE9.2 AMD64; LFS; GentooAMD64; Ubuntu10.04; RHEL 5.5; Solaris10(SPARC)
Posts: 418

Rep: Reputation: 30
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.
 
  


Reply



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
Disabling samba multiple logons jgnasser Linux - Software 2 08-29-2004 12:37 AM
inconsistent logons giri2 Mandriva 0 08-17-2004 05:50 PM
Hiding user logons gasurfman Mandriva 1 10-30-2003 10:42 PM
Samba: Domain logons automatically log off apocow Linux - Networking 0 08-29-2003 04:16 AM
email me ftp user logons jonfa Linux - General 3 05-24-2002 05:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:42 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
Open Source Consulting | Domain Registration