LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-20-2004, 06:51 PM   #1
Exio
Member
 
Registered: Dec 2003
Location: Heath and reach
Distribution: Slackware
Posts: 54

Rep: Reputation: 15
samba, strange but true....


while i have been using samba i have noticed that the outrageous ides seem to work.

I have samba all setup and working with all the write permissions for users on the shares, but this is only on windows.

In linux u can access the shares, but when i allow write acces for the user it doesn't want any of it. BUT if im root i have full write privileges. I do have a smb account called root, but i haven't told samba to allow writing on this partition.

Has any one ells come across this??????
Does any one know how to overcome this problem????


My smb.conf
**********************************************
[global]

workgroup = SXPB
server string = Samba Server
log file = /var/log/samba.%m
max log size = 50
security = exio nick paul
encrypt passwords = yes
ssl CA certDir = /etc/ssl/certs
socket options = TCP_NODELAY
smb passwd file = /etc/samba/smbpasswd

[data]
comment = Nick's Service
path = /data/nick
public = no
writable = no
write list = exio nick

[PJ]
comment = Pauls files
path = /data/paul
public = yes
writable = no
write list = paul exio nick

**********************************************
Also, if i want write access at all for any share i have to enter the user after ;

security =

and as root is not after this its makes it even more mind boglin...
 
Old 05-20-2004, 07:07 PM   #2
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
I do not have my man pages with me right now and am not sure how the write list parameter works with writeable = no on a share. I do know that paul exio nick is not a valid security setting. If you are setting up unix accounts with password validation it should be securtiy = user. I do not know if those are hosts or users? The easiest way to deny writing to directories is to set up unix level group permissions on you share directories. Set paul exio nick as members of a group and make PJ writeable only by them (ie chmod 770 /data/paul).

Tom
 
Old 05-21-2004, 09:36 AM   #3
Hamsjael
Member
 
Registered: Aug 2003
Location: Vejle, Denmark
Distribution: Mainly Debian, some Fedora for the bleeding edge fix
Posts: 92

Rep: Reputation: 15
Hi Exio

You misunderstand the setting "security = user" This setting is a global setting that can be either : "security = share" "security = user" "security = server" "security = domain" or "security = ads" (only on samba 3.0 or newer). You are not meant to put usernames here!! Just set it exacyly like this : "security = user" then samba will check the credentials and permissions of the user trying to connect.

good luck

Hamsjael
 
Old 05-21-2004, 04:16 PM   #4
Exio
Member
 
Registered: Dec 2003
Location: Heath and reach
Distribution: Slackware
Posts: 54

Original Poster
Rep: Reputation: 15
OMG lol, i am rather stupid, i muct have been going though a thick syage but it would take a while to explain y i came to thinking this was needed.

Have you any idea y i dont have write privalages in linux unlees im root...

Manny thanks

Nick
 
Old 05-21-2004, 06:57 PM   #5
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
Quote:
Set paul exio nick as members of a group and make PJ writeable only by them (ie chmod 770 /data/paul).
 
  


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
Strange SAMBA behavior Daniboy Linux - Software 3 10-07-2005 09:19 AM
Very Strange Samba Issue CanadianPenguin Linux - Networking 9 10-06-2005 12:36 AM
strange samba error - help please muxman Linux - Networking 0 12-19-2004 02:00 PM
strange problem with samba ramu_ak Linux - Networking 0 07-11-2003 08:21 AM
Samba printer - strange! andrec_ufmg Linux - Hardware 1 01-28-2003 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:26 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