Networking Forums

Networking Forums > Computer Networking > Linux Networking > Different user/group/permissions depending on which folder inside the Samba share a file is created in?

Reply
Thread Tools Display Modes

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

 
 
arabub
Guest
Posts: n/a

 
      05-20-2004, 02:48 AM
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
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      05-20-2004, 06:47 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.networking arabub <(E-Mail Removed)> 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 (E-Mail Removed) | 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
 
Cameron Kerr
Guest
Posts: n/a

 
      05-21-2004, 07:00 AM
In comp.os.linux.networking arabub <(E-Mail Removed)> 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
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
 
 
Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: share folder permissions Ace Fekay [MVP-DS, MCT] Windows Networking 0 03-20-2010 01:32 AM
How do I add a network user to the security permissions on a sharedXP folder? Cron Windows Networking 9 03-01-2008 03:22 AM
Share Folder permissions Asif Windows Networking 1 11-21-2007 12:52 PM
file and folder share permissions - Help please don duck Windows Networking 1 01-23-2006 09:41 PM
Permissions for Share that allows file to be created read only. Bonge Boo! Windows Networking 0 01-21-2005 04:37 PM



1 2 3 4 5 6 7 8 9 10 11