Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: holywacks on May 27, 2008, 09:58:58 PM

Title: File permissions when saving to SME server from WinXP Station
Post by: holywacks on May 27, 2008, 09:58:58 PM
Is there a way to force a group assignment when I save a file to a SME server from a WinXP station?

I'll explain....I have a folder "docs" on the server with permissions

drwxrwx--- 5 jsmith admin 4096 May 27 15:09 docs

if I create a document test.doc from WinXP station and save it into the "docs" folder it will save it with the permissions jsmith : jsmith
Is there a way to force the group permissions so it will save it as jsmith : admin?
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: m on May 28, 2008, 10:34:49 AM
Code: [Select]
chmod g+s docssee 'man chmod'
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: Stefano on May 28, 2008, 11:25:54 AM
holywaks

please explain where you have these files and what are you triyng to do

TIA
Stefano
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: holywacks on May 28, 2008, 02:05:53 PM
I have a SME Server 7.3 that I use as a File Server Only.
I have 9 WinXP Pro stations on that LAN.
I created a ibays called COMMUN that all users can save files that they're able to share with others.

When a user (jsmith) create a new file from a WinXP station (let say a Word document) and saves it to the COMMUN folder, the ownership of that file is jsmith:jsmith. Then if another user acces that file, he is able to open it but can't modify it.

I was wondering if there is a way to config the server that when a user saves a file it force the group ownership to SHARED.
Maybe there is a way to config the SME server differently.

PS. I discoved SME only 3months ago and still learning. (So I'm still a newbie) When I started working at this new job the old Win2000 server crashed and needed a quick replacement and SME Server saved the day!
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: Stefano on May 28, 2008, 02:18:39 PM
hi

please post here the result of
Code: [Select]
db accounts show COMMUN

when you create an ibay, the normal behavior is exaclty what you want..
ciao
Stefano
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: holywacks on May 28, 2008, 02:23:41 PM
Here it is,

commun=ibay
    CgiBin=disabled
    Gid=5000
    Group=shared
    Name=commun
    PasswordSet=no
    PublicAccess=local
    Uid=5000
    UserAccess=wr-group-rd-group
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: Stefano on May 28, 2008, 02:32:35 PM
looks good..

can you confirm that files into this ibays have permission like

-rwxrw----   1 jsmith     jsmith  1327616 Feb 21  2007 myfile.doc

and not like

-rwxrw----   1 jsmith     shared  1327616 Feb 21  2007 myfile.doc

TIA
Stefano
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: holywacks on May 28, 2008, 02:52:29 PM
Magic!!! it's seems to be working this morning.

I feel bad, my first post and its seem that I don't realy have a problem!
I don't understand why it wasn't working yesterday. I'm gonna try to find more infos on the working of rights and permissions.

sorry to have taken your time.

My next step is to find a reliable way to backup the data.
I'm presently testing Genie Backup Manager Pro 8.
I'm doing the backups from a station to a USB Drive.
Any suggestions?

Thanks again for your time. I really appreciate the efficiency of this forum, great job guys.
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: Stefano on May 28, 2008, 02:59:26 PM
Hi

are you talking about backup for your pc? if yes, look at backuppc in howto section.

ciao
stefano
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: holywacks on May 28, 2008, 03:06:58 PM
Hi

I'm looking to backup the server. All data from my COMMUN folder.
Now I'm testing differential and Incremental backups.
the size of the data is over 20Gb.
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: Stefano on May 28, 2008, 03:19:39 PM
Hi again..

there are many contribs to backup your server.. use the "Search" link or look into wiki/howtos.

If you feel confortable, you can write down your own backup script.

Ciao
Stefano
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: holywacks on May 28, 2008, 03:23:58 PM
I will.
Thanks again Stefano,
I'll keep in touch.

Have a exelent good day!

Marcel
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: mercyh on May 28, 2008, 03:39:40 PM
It is strange that it changed. I have found that if I use Winscp to copy a file into an IBAY it does not get the IBAY permission settings. I have had several "orphan files" created this way. I have found that if I go into IBAY configuration in server-manager and save the configuration of that IBAY, the IBAY group gets written back to those files.
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: holywacks on May 28, 2008, 04:24:47 PM
I'll get more familliar with the SME file structures, rights and permissions and I will probably figure out what happen.
I'll let you know.
I use Winscp myself and I've notice that too, but I never use it to transfer or copy files to the server.

Well i'll go back to work now.
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: CharlieBrady on May 28, 2008, 11:03:24 PM
Code: [Select]
chmod g+s docssee 'man chmod'

No, Michael - users shouldn't need to know or use chmod to have directories within i-bays setgid.
Title: Re: File permissions when saving to SME server from WinXP Station
Post by: CharlieBrady on May 28, 2008, 11:05:01 PM
It is strange that it changed. I have found that if I use Winscp to copy a file into an IBAY it does not get the IBAY permission settings.

Please provide details via a bug report. Thanks.