[gentoo-user] linux command for file ownership and flag by creation ?!

2014-02-03 Thread Tamer Higazi
Hi people!

I have asked myself if there are set of commands on Linux or Gentoo,
that if a file locally created it belongs to a special group.

Let us say:

/var/folderX

folderX belong to tamer:daemon

I want every file I create inside automatically belongs to: tamer:daemon
and not tamer:tamer


For any advises, I would thank you



Tamer





Re: [gentoo-user] linux command for file ownership and flag by creation ?!

2014-02-03 Thread Korthrun
Looks like you're looking for setgid functionality.

Check out http://en.wikipedia.org/wiki/Setuid#setgid_on_directories


On Mon, Feb 3, 2014 at 4:47 PM, Tamer Higazi  wrote:

> Hi people!
>
> I have asked myself if there are set of commands on Linux or Gentoo,
> that if a file locally created it belongs to a special group.
>
> Let us say:
>
> /var/folderX
>
> folderX belong to tamer:daemon
>
> I want every file I create inside automatically belongs to: tamer:daemon
> and not tamer:tamer
>
>
> For any advises, I would thank you
>
>
>
> Tamer
>
>
>
>


-- 
()  The ASCII Ribbon Campaign - against HTML Email,
/\  vCards, and proprietary formats.