Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
explanation of samba "create mask/mode"?
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
Belthezar
n00b
n00b


Joined: 03 Jun 2002
Posts: 28
Location: Ohio, USA

PostPosted: Mon Jun 03, 2002 6:14 pm    Post subject: explanation of samba "create mask/mode"? Reply with quote

Could someone out there try and explain how the create mask and create mode lines in a samba config works? I've been googling for about 20 minutes but coming up with nothing.

I (nearly) fully understand permissions under Linux in general, but I just can't figure out how to use create mask when making shares under samba. :?

What I would like is to be able to create a samba share that points to my apache htdocs folder. I only want to give myself access to this folder, however I need the permissions to always use the apache user/group and not my own username. I also want the numeric permissions to always be 770.

I'm using the following right now for my samba share, but any file I touch under windows resets the user/group to my own which means I have to ssh into the linux box and do a chgown and chgmod before the web server will serve up the modified files

Code:

[htdocs]
    comment = HTDOCS root
    path = /path/to/htdocs
    browseable = yes
    read only = no
    create mode = 0770
    users = sandej


So is create mask or create mode what I need to learn to do this?
Back to top
View user's profile Send private message
acidreign
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2002
Posts: 122
Location: Brisbane, Australia

PostPosted: Wed Jun 12, 2002 4:14 am    Post subject: Just to clarify Reply with quote

When you access a file, from windows on the linux box running samba.. when you upload/save it.. its permissions are set to the user that you mounted the drive as ?
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