Re: Chown problem
Am Donnerstag, 9. März 2006 10:34 schrieb Tobias Krais:
> Hi Hans,
>
Hi Tobias,
> >>check whether the user and the group exists and try "chown -R jkr:jkr *"
> >
> > Shouldn't it be "chown -R jkr:jkr /" ?
>
> this will chown the whole system...
>
Yes, but I thought, that was the thing, he wanted to do. :)
> > I think, there must be a trailing slash,
> > just like "chown -R jkr:jkr /home/jkr/"
>
> ... for my experiences a chown without a trailing slash changes the
> permissions in the working directory (if -R is specified, the
> subdirectories too).
>
Hmm, if you have no trailing slash, it changes the permissions of the
directory, till the first trailing slash. In my example:
"chown -R jkr:jkr /home/jkr"
This would chang the owner of th edirectory "jkr", too, instead only the
files, which are below the directory /home/jkr/. And yes, you are right: the
switch -R does thi srecursive to all files and directories in the named
folder.
Hope, this will help.
Best regards
Hans
> Greetings, Tobias
Reply to: