Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

About the samba share

Reply
 
Thread Tools Display Modes
  #1  
Old 10-09-2004, 04:27 PM
Default About the samba share



I hv setup the samba server on unix for windows user to access , now
the windows user , I hv share the path /tmp/temp1 for windows user to
share , now the windows user can read/write at this path , but the
path /tmp/temp1 is mode 777 , if I change it to 775 , the user then
can't write something to it . I tried the user can create files at the
shell but why can't do it through the samba ? the below is my setting
file , please suggest what is the problem ? thx.

[temp]
path = /tmp/temp1
allow hosts = my IP0
writeable = yes
read only = No
public = yes
create mask = 0664

the below is my smb.conf and /etc/samba/users.map file but still not
work , could suggest what is the problem ? thx


[global]
interfaces = eth0
username map = /etc/samba/users.map
password server = 192.168.11.1
wins server = 192.168.11.10
domain master = False
security = share
encrypt passwords = yes
name resolve order = wins lmhosts host bcast
workgroup = edp_nt1
server string = uixx1
netbios name = unix1
wins proxy = Yes
os level = 20


#vi /etc/samba/users.map
user1 = edp-user1


where user1 is the unix login id that can create file at /tmp/temp1
and edp-user1 is my windows ip .


Andy
Reply With Quote
  #2  
Old 10-09-2004, 04:30 PM
Davide Bianchi
Guest
 
Posts: n/a
Default Re: About the samba share

On 2004-10-09, Andy <(E-Mail Removed)> wrote:
> I hv setup the samba server on unix for windows user to access , now


What's "hv"?

> path /tmp/temp1 is mode 777 , if I change it to 775 , the user then
> can't write something to it


Your users aren't recognized by the system, so only if the directory
is world-writeable it can be written. Change the permission on the
directory or put your users in the right group.

Davide

--
We are using Linux daily to UP our productivity -- so UP yours, Microsoft!
Reply With Quote
  #3  
Old 10-14-2004, 08:44 PM
Antoine EMERIT
Guest
 
Posts: n/a
Default Re: About the samba share

(E-Mail Removed) (Andy) wrote
news:(E-Mail Removed) om:
> security = share


If you want to identify user on the unix uid, you should better set

security = user

end add users in the smbpasswd file, using the smbpassword command.

Then your are in a unix only problem :

- add each user in a common unix group
- chgrp the shared directory to the group

Regards
Reply With Quote
Reply

Tags
samba, share

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 01:40 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.