Bluehost.com Web Hosting $6.95

Re: [Samba] Problem with setting Normal attribute for a file owned

This is a discussion on Re: [Samba] Problem with setting Normal attribute for a file owned within the Samba forums, part of the Networking and Network Related category; are we speaking about MAC Excel or Windows Boxes only? we´ve had several issues with Office Mac, see "[...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-04-2005
Michael Gasch
 
Posts: n/a
Default Re: [Samba] Problem with setting Normal attribute for a file owned

are we speaking about MAC Excel or Windows Boxes only?

we´ve had several issues with Office Mac, see
"[Samba] Mac OSX breaking POSIX rights with SMB/CIFS"

cheerz

Oleg Starshinov wrote:
> Hi Everyone,
> We have a Samba 3.0.20b server running in a multi-user environment.
> There is a "serveruser" username that does batch processing on the files
> using VB.NET code.
> There are many other regular users: "user1", "user2", etc...
> They are all part of the "users" group
> If "user1" opens up a file in Excel, it changes the ownership on the
> file and permissions to:
> User - rwe
> Group - rw-
> Other - ---
>
> The default setting is:
> User - rwe
> Group - rwe
> Other - ---
>
> I can live with the change of the permissions, but it also changes the
> ownership from "serveruser" to "user1".
>
> As part of my code, the server applies a "Normal" attribute to the files
> once it is done copying them.
> It works fine when the "serveruser" is the owner of the file, but when
> someone else owns the file an exception is raised.
> This is the line of code: File.SetAttributes(myFile.FullName,
> FileAttributes.Normal)
> I can open and save the files with any user name, but the setting of the
> attribute is only allowed if I own the file.
> Is this by design or am I missing something?
>
> As a workaround I included this line in the conf file:
> force user = serveruser
> I would rather have the last user that saved the file to be registered
> as the owner.
>
> Here is the conf file relating to that share:
> writeable = yes
> path = /data
> force user = serveruser
> write list = @users
> force directory mode = 2775
> force group = users
> valid users = user1,user2,serveruser,@users
> create mode = 0771
> directory mode = 2775
>
> Thanks,
> Oleg.



--
Michael Gasch
Max Planck Institute for Evolutionary Anthropology
Department of Human Evolution (IT)
Deutscher Platz 6
D-04103 Leipzig
Germany

Phone: 49 (0)341 - 3550 137
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0