Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #235355

Re: Restoring sticky bits after accidentally moving /usr directory

From Tixy <tixy@yxit.co.uk>
Newsgroups linux.debian.user
Subject Re: Restoring sticky bits after accidentally moving /usr directory
Date 2021-05-19 08:50 +0200
Message-ID <CgobL-59f-3@gated-at.bofh.it> (permalink)
References <CggnT-vt-1@gated-at.bofh.it> <Cgig2-1Ba-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 2021-05-18 at 20:28 -0400, songbird wrote:
> Steve Dondley wrote:
> 
> > I goofed up and accidentally moved my /usr directory while trying to 
> > make room on a full drive. I was able to recover, but I'm finding that 
> > services are not working because the sticky bits for many files 
> > /usr/bin/* were lost. For example, I can't send email with exim because 
> > of this error:
> > 
> > Failed to create spool file /var/spool/exim4//input//1lj87g-0002tS-5J-D: 
> > Permission denied
> > 
> > Is there an easy way to ensure I set all the permissions back to where 
> > they were before I move /usr?
> 
>   not that i can think of being super easy, but listing all
> packages on the system and then reinstalling each of them 
> should do it.
> 
>   i think...  :)

I thought that too, but possibly (probably?) package install doesn't
setup directory permissions if it already exists. There's no harm
trying though, except...

When reinstalling packages that were installed automatically to satisfy
dependencies, you would want to make sure their state is set back to
auto installed after forcibly reinstalling them.

I've not done this sort of thing, but to get and set package states
'apt-mark' looks like the tool. Try 'man apt-mark'.

-- 
Tixy

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Restoring sticky bits after accidentally moving /usr directory Steve Dondley <s@dondley.com> - 2021-05-19 00:30 +0200
  Re: Restoring sticky bits after accidentally moving /usr directory Andy Smith <andy@strugglers.net> - 2021-05-19 01:50 +0200
    Re: Restoring sticky bits after accidentally moving /usr directory s@dondley.com - 2021-05-19 02:10 +0200
    Re: Restoring sticky bits after accidentally moving /usr directory Greg Wooledge <greg@wooledge.org> - 2021-05-19 05:50 +0200
      Re: Restoring sticky bits after accidentally moving /usr directory Andy Smith <andy@strugglers.net> - 2021-05-19 13:00 +0200
  Re: Restoring sticky bits after accidentally moving /usr directory David <bouncingcats@gmail.com> - 2021-05-19 02:20 +0200
  Re: Restoring sticky bits after accidentally moving /usr directory songbird <songbird@anthive.com> - 2021-05-19 02:30 +0200
    Re: Restoring sticky bits after accidentally moving /usr directory Tixy <tixy@yxit.co.uk> - 2021-05-19 08:50 +0200
      Re: Restoring sticky bits after accidentally moving /usr directory Tixy <tixy@yxit.co.uk> - 2021-05-19 09:00 +0200
  Re: Restoring sticky bits after accidentally moving /usr directory Andrei POPESCU <andreimpopescu@gmail.com> - 2021-05-19 09:30 +0200
  Re: Restoring sticky bits after accidentally moving /usr directory Hans <hans.ullrich@loop.de> - 2021-05-19 12:40 +0200
    Re: Restoring sticky bits after accidentally moving /usr directory Steve Dondley <s@dondley.com> - 2021-05-19 19:20 +0200
      Re: Restoring sticky bits after accidentally moving /usr directory songbird <songbird@anthive.com> - 2021-05-19 20:00 +0200

csiph-web