- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Samba and access right
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
Forums
Discussions
Discussions
Discussions
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
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
06-01-2005 02:48 AM
06-01-2005 02:48 AM
Samba and access right
I have strange things on file moving by using samba ....
I have a destination directory (we can call it DEST) that has the SGID set and I force the file creation mode on 664
when I copy a file from one samba dir to another one (into my DEST dir)everything is set properly
But when I make a cut paste ... it takes the original right of my file!!!both SGID and samba config are ignored !!!????
is that normal ? is there a way to avoid that ?
thx
mathieu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 02:54 AM
06-01-2005 02:54 AM
Re: Samba and access right
Can you provide a look at the permissions before and after.
Samba should work, if its in user based authentication mode off the default user umask settings, though this can probably be overridden in the smb.conf file.
You might want to provide the smb.conf file as an attachement to assist me and others in resolving your issue.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 03:36 AM
06-01-2005 03:36 AM
Re: Samba and access right
the smb.conf file :
[global]
workgroup =
netbios name =
server string = HP File Server %h (%v)
interfaces = XXX.XXX.XXX.80
security = SERVER
update encrypted = Yes
password server = XXX.XXX.XXX.17
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 1000
local master = No
ldap ssl = no
read only = No
dos filetime resolution = Yes
[file_data_rw]
comment = file access read write
path = /data/file
valid users =
force group = DESTgrp
create mask = 0664
force create mode = 0664
directory mask = 0775
so within /data/file I've 2 dirs : dir1 and DEST
DEST has rwx rws r_x group: DESTgrp
in dir1 I have a toto file with rights :
toto : rw- rw- --- group TOTOgrp
when I copy the file (over samba) from dir1 to DEST, my toto file gets :
toto : rw- rw- r-- group : DESTgrp
by doing a cut and past I got
toto : rw- rw- --- group TOTOgrp
that's wy issue ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 04:12 AM
06-01-2005 04:12 AM
Re: Samba and access right
security = SERVER
update encrypted = Yes
password server = XXX.XXX.XXX.17
It could be a problem on the password server. Users are being identified on that server. If its a Unix server here is a possible issue.
umask on the password server.
Numeric UID or GID is not the same for the same user on both machines.
Example:
user shcmo uid 501 gid 512 on servera
user schmo uid 503 gid 534 on serverb
The OS and CIFS/Samba use numbers and the umask or group umask settings on serverb need to be checked and are creating the results you are getting.
As a rule of thumb I try to make sure the numeric user ids and group ids for a given user are the same on ALL systems I administer.
This can be done manually or with an openldap server.
The samba log files may provide clues as to what is happening here.
fail -f
Then create the problem. See if there is a clue in there.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 04:22 AM
06-01-2005 04:22 AM
Re: Samba and access right
I'll have a look on the log files....
but unfortunately the passwd server is an Win server that's not administrated by myself :(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 05:38 AM
06-01-2005 05:38 AM
Re: Samba and access right
I strenuously recommend version 3 (the one from HP of course)...
You mean when you drag and drop the file - the permissions are okay?
But a ctlr x then ctrl v they are not?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 07:11 PM
06-02-2005 07:11 PM
Re: Samba and access right
ctrl C + ctrl V applies the samba + unix rules so it's ok
ctrl X + ctrl V or drag& drop does not ... it keeps the original file rights.....
I have Samba version
3.0.5 based HP CIFS Server T.30 PV 02
By having a look in the log when I make a cut/paste or a copy/paste on a share called TEST it tells me :
couldn't find service TES ....
By renaming the share the error be the same, that's all concerning the error I can see :/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 09:58 PM
06-02-2005 09:58 PM
Re: Samba and access right
afaik this is a windows behavior. We have a windows directory to transfer data between different departments. The rights are set so that you can read everything thats in your departments subdir. And you are able to copy stuff to any other departmenst directory. But you cant read whats in the other departments subidir unless it is copied there by yourselfe.
We have the effect that this works as designed as long as you copy the files. But if you move the files the rights are not convertet correctly.
Unfortunately we haven't found a workaround. So the users have to make sure the copy not move the files.
Regards Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2005 01:29 AM
06-03-2005 01:29 AM
Re: Samba and access right
Why do you think it comes from Win world?
I wished there were some samba or CIF patch that correct this issue ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2005 01:49 AM
06-03-2005 01:49 AM
Re: Samba and access right
i think this is a pure Windows behavieor because we see the effect you described on a Windows share not a Samba/CIFS share.
This directory i mentioned above resides on a Windows 2000 Server.
Hope this helps
Regards Stefan