Chown script
Franco
primo at ischianet.com
Thu Oct 21 16:09:56 UTC 2004
Hi, this script give me an error `ls': not a valid user
i need to change the owner with a foldername.group
i need to read a group of the folder and then change it with
foldername.group group
Ho questo tipo di problema:
in una struttura del tipo /home/utente/homes/
all'interno di questa ho tutti gli utenti e-mail,
sono tutti settati con owner e gruppo uguale mentre
io ho bisogno di cambiare l'owner con il nome della
cartella.ilgruppo non so se sono stato chiaro.
Ti ringrazio in anticipo per l'aiuto.
antonio tuozzo ha scritto:
> Franco wrote:
>
>> Sorry,
>> i do an example, i have 2 folder in the same parent folder,
>> pippo and pippo1 these have as owner and group pippo and pippo.
>> I need to change just the owner in pippo.pippo and pippo1.pippo
>>
>>
> If I have understand the problem....
>
> for I in 'ls /path/to/folder'
> do
> chown $I.pippo $I
> done
>
>> Franco ha scritto:
>>
>>> Hi, i have done a restore of a server but all the e-mail users
>>> have the same user of the group, i need to change the user of each
>>> user in 'user.group' do you can give me any idea?
>>> Best regards.
>>>
>>
>
More information about the fedora-list
mailing list