Different user/group/permissions depending on which folder inside the Samba share a file is created in?

This is a discussion on Different user/group/permissions depending on which folder inside the Samba share a file is created in? within the Linux Networking forums, part of the Linux Forums category; Is it possible to achieve different permissions on a newly created file or folder depending on which folder inside a ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-20-2004
arabub
 
Posts: n/a
Default Different user/group/permissions depending on which folder inside the Samba share a file is created in?

Is it possible to achieve different permissions on a newly created
file or folder depending on which folder inside a Samba share it is
created in?

Example:
Inside my share 'my_share' I have two folders:
private_folder
public_folder
Whenever a user creates a file inside 'public_folder' it is assigned
permissions 755, and whenever a file is created inside
'private_folder', the file gets 700.

Thanks,
--Ulf
Reply With Quote
  #2 (permalink)  
Old 05-20-2004
Michael Heiming
 
Posts: n/a
Default Re: Different user/group/permissions depending on which folder inside the Samba share a file is created in?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.networking arabub <arabub@yahoo.com> suggested:
> Is it possible to achieve different permissions on a newly created
> file or folder depending on which folder inside a Samba share it is
> created in?


> Example:
> Inside my share 'my_share' I have two folders:
> private_folder
> public_folder
> Whenever a user creates a file inside 'public_folder' it is assigned
> permissions 755, and whenever a file is created inside
> 'private_folder', the file gets 700.


The easiest should be, setup a share for each and use "force
mode" or alike, check the samba docs. (www.samba.org).

--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFArFR8AkPEju3Se5QRAtsWAJ9d5vvBbQOXVnnqqgyWw4 Afen1OtwCfRmBg
2tRsKhVO5lm4G1qU6Tzga28=
=TMEM
-----END PGP SIGNATURE-----
Reply With Quote
  #3 (permalink)  
Old 05-21-2004
Cameron Kerr
 
Posts: n/a
Default Re: Different user/group/permissions depending on which folder inside the Samba share a file is created in?

In comp.os.linux.networking arabub <arabub@yahoo.com> wrote:
> Is it possible to achieve different permissions on a newly created
> file or folder depending on which folder inside a Samba share it is
> created in?


You could do this on the server if you use ACLs. I think most modern
distributions deal with these. You can set up an ACL on each directory
to specify a default user and group for new objects, though I've not
used that capability for quite some time.

See the manual page for setacl (?), or do a 'man -k acl'

--
Cameron Kerr
cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/
Empowered by Perl!
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 12:23 AM.


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