Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba file ownership
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Voorhees51
Guru
Guru


Joined: 05 Nov 2003
Posts: 358

PostPosted: Tue Jun 22, 2004 5:39 am    Post subject: samba file ownership Reply with quote

I have a samba server running with write access. I have the share mounted in windows.

When i write to it it from windows it assigns the files as:
-rwxr--r-- nobody nobody <filename>

How do i change this to it assigns them to <mysuser>:users and be able to set the default permissions that it will assign the files

My smb.conf file looks like this:


# Global parameters
[global]
dos charset = UTF-8
workgroup = IASTATE
netbios name = GOKU
server string = ServerFiles
# interfaces = 192.168.0.1/24
min passwd length = 0
null passwords = Yes
log level = 1
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = lpstat
dns proxy = No
ldap ssl = no
printing = cups
guest only = yes
security = share
hosts allow = 192.168.

[serverfiles]
comment = ServerFiles
path = /mnt/ServerFiles
writeable = yes
guest ok = yes
Back to top
View user's profile Send private message
nizar
Apprentice
Apprentice


Joined: 19 Dec 2003
Posts: 268
Location: localhost

PostPosted: Tue Jun 22, 2004 5:57 am    Post subject: Reply with quote

Code:

create mask
directory mask


The nobody because you have
Code:
guest ok=yes
.
You need to declare
Code:
write list= user1 user2...
and set the
Code:
create mask
and the
Code:
directory mask
Back to top
View user's profile Send private message
Voorhees51
Guru
Guru


Joined: 05 Nov 2003
Posts: 358

PostPosted: Wed Jun 23, 2004 9:54 pm    Post subject: Reply with quote

I've got the permissions working now.

I am still having problems with the file ownership.
When I add write list = <myuser>
it will reconize it in windows, but it keeps prompting me for a username and password. What do I need to do to solve this problem?

Here is the relevant part of the smb.conf file

[serverfiles]
comment = ServerFiles
path = /mnt/ServerFiles
writeable = yes
write list = <myuser>
create mask = 644
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum