- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Samba: file permissions
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2004 08:38 PM
тАО09-07-2004 08:38 PM
Samba: file permissions
I've a problem with file permissions in a Samba environment. Samba server is an hp-ux 11i and a particular directory ("/applicazioni/fotografie/immagini_salvate") is shared to some windows servers (in a specific subnet).When a windows user try to copy a txt file under this directory, the permission of this copied file are 600. We wish to have, instead, 777 for every file.
These are the lines relatives to this dir in smb.conf:
[applicazioni]
path = /applicazioni
public = no
writable = yes
create mode = 0777
create mask = 0777
case sensitive = yes
hosts allow = 192.168.
The ownership of files under the dir "/applicazioni/fotografie/immagini_salvate" is "oracle:dba".
Thanks.
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2004 09:22 PM
тАО09-07-2004 09:22 PM
Re: Samba: file permissions
normally a file created has the permission "666" whereas dir's have "777" if *no* umask is set
The execute permission for a file is never set by default even if you set create mode to "0777" or umsak to "000"
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2004 09:37 PM
тАО09-07-2004 09:37 PM
Re: Samba: file permissions
infact I setted the parameter "create mask" as 0777, but it doesn't work. Anytime the win user *copy* a txt file under that dir, this file has 600 as permissions, not 777. Maybe the right parameter is not "create mask" but another, but I don't know which.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2004 09:38 PM
тАО09-07-2004 09:38 PM
Re: Samba: file permissions
some points come to my mind:
- ownership is correctly preserved ?
- which is the umask ?
- is a workaround acceptable (like a cron job that fixes permissions ) ?
- what is the Samba Version ?
Regards,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2004 12:00 AM
тАО09-08-2004 12:00 AM
Re: Samba: file permissions
See perhaps 'directory mode' (or 'directory mask'). If Windows version is W2K/NT/XP see also 'security mask' and/or 'directory security mask' values
(http://us3.samba.org/samba/docs/man/smb.conf.5.html)
HTH
JMB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2004 01:04 AM
тАО09-08-2004 01:04 AM
Re: Samba: file permissions
you'll need to set the following parameter :
force create mode = 0777
and then it works !
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2004 01:41 AM
тАО09-08-2004 01:41 AM
Re: Samba: file permissions
create mask = 0775
force create mode = 0775
directory mask = 0775
On the shares themselves:
force directory mode = 0775
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2004 07:26 PM
тАО09-08-2004 07:26 PM
Re: Samba: file permissions
did our last posts solve your problem (at least they did when i tried it in my environment :)
If so, then please don't forget to assign points
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2004 08:11 PM
тАО09-22-2004 08:11 PM
Re: Samba: file permissions
I've solved the problem forcing user and group for that directory; so, parameters for "/applicazioni" dir are:
[applicazioni]
path = /applicazioni
public = no
writable = yes
force user = oracle
force group = dba
create mode = 0777
create mask = 0777
force create mode = 777
force directory mode = 777
security mask = 0777
case sensitive = yes
hosts allow = 192.168.
Thanks to all,
Enrico