[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Permissions



In article <[🔎] 20040209235947.1e70fcfe@note>, Johann Koenig wrote:
> On Monday February  9 at 07:45pm
> Joshua Jankowski <sccrpmp@hotmail.com> wrote:
> 
>> As I have been quite intelligent in setting permissions on my debian
>> server, I am here to see if anyone has a solution.  In my attempt to
>> write recursive permissions on one of my directories, I hit enter a
>> little too prematurely with / as the designated folder.  Quickly
>> noticing the error, I hit ctrl-c to stop the operation but as you can
>> guiess, it was not soon enough.  It overwrote the permissions that
>> were set by debian in the /bin folder and unknown others.
>> 
>> Is there a utility or way to easily(or not) fix the default
>> permissions?
> 
> I b0rked my old server in a similar fashion. Only sane way to fix it is
> a clean install. I tried checking the permissions on a similar computer,
> but there are so many files with special ownership/permissions that I
> very quickly got very frustrated.
> 
> Re-install is the best way. (This is the only scenario I've run into
> that really *required* a reinstall. Everything else I've been able to
> fix.)

Well, if it's only the /bin directory, I'd simply chmod -R 0755 /bin
and hope for the best (su, ping, login should be setuidroot, mount
and unmount are as well on my system, but I never use that).

If a particular package/command gives problems, you can always use
  apt-get --reinstall install package
to fix the file permissions of that particular package.

All permissions of all debian-installed files (except /etc) are
described in the .deb files, so if you really wanted to, you should
be able to write a little script that gets all installed .debs and
corrects the permissions.

-- 
joostje



Reply to: