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

Reply via email to