[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse
Subject:    Re: [opensuse]  Re: Is it possible to set group permissions = owner
From:       James Knott <james.knott () rogers ! com>
Date:       2006-12-20 12:39:18
Message-ID: 45892EF6.3020600 () rogers ! com
[Download RAW message or body]

Greg Wallace wrote:
> On Tuesday, December 19, 2006 @ 5:15 AM, Joachim Schrod wrote:
>
>   
>> Greg Wallace wrote:
>>     
>>> I would like to go through all files and subdirectories of a directory
>>>       
> and
>   
>>> set the group permissions equal to the owner permissions.  Is there a
>>> command that will do this?  This directory has thousands of files and
>>> hundreds of directories under it, so doing this manually isn't feasible.
>>>       
>
>   
>> find directory | while read f
>>    do setfacl -m `getfacl "$f" | grep user | sed s/user/group/` "$f"
>>    done
>>     
>
>
>   
>> 	Joachim
>>     
>
> Joachim:
>   Well, I tried this script but it didn't work.  I put the above code into a
> file, hard coded /root/test for directory to point to a directory called
> test under root that had 4 files under it, and tried executing the script to
> see if it copied over the permissions.  I got the following error when I
> tried to run it --
>
> ': not a valid identifier line 1: read : `f
>
>   

One thing that would be nice, would be if SUSE would allow individual
user groups, when a user is created.  As it currently is, with the
"users" group and default permissions, anyone can read your home directory.

-- 
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse+help@opensuse.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic