Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Need list of directory ownership under /var

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
jmanko
Tux's lil' helper
Tux's lil' helper
Posts: 139
Joined: Sun Sep 11, 2005 5:41 pm
Location: NEPA, USA

Need list of directory ownership under /var

  • Quote

Post by jmanko » Wed Mar 16, 2016 10:57 pm

I accidentally set the directory ownership for everything recursively under /var to root:root. I need help determining the correct ownership for each directory/file. I can't believe I messed up this bad.

Code: Select all

# ls -al
total 68
drwxr-xr-x 17 root root 4096 Nov 16 15:31 .
drwxr-xr-x 22 root root 4096 Sep 10  2015 ..
drwx------  2 root root 4096 Aug 27  2015 agentx
drwxr-xr-x 11 root root 4096 Nov 16 15:39 cache
drwxr-xr-x  4 root root 4096 Mar 16 18:01 db
drwxr-xr-x  2 root root 4096 Mar 16 10:18 empty
drwxr-xr-x  3 root root 4096 Mar 16  2015 git
drwxr-xr-x 34 root root 4096 Mar 15 21:22 lib
lrwxrwxrwx  1 root root    9 Mar 16  2015 lock -> /run/lock
drwxr-xr-x 12 root root 4096 Oct 12 21:21 log
lrwxrwxrwx  1 root root   15 Jul 26  2015 mail -> /var/spool/mail
drwxr-xr-x  2 root root 4096 Mar 16 18:06 nmbd
lrwxrwxrwx  1 root root    4 Mar 16  2015 run -> /run
drwxr-xr-x  9 root root 4096 Jan 22 11:11 spool
drwxr-xr-x  2 root root 4096 Mar 16  2015 state
drwxr-xr-x  3 root root 4096 Jul 15  2015 svc.d
drwxr-xr-x 68 root root 4096 Aug 12  2015 svn
drwxrwxrwt  3 root root 4096 Mar 16 16:08 tmp
drwxr-xr-x  4 root root 4096 Mar 16  2015 www
"What stands in the way becomes the way." -- Marcus Aurelius
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Wed Mar 16, 2016 11:11 pm

I think it would be easier to restore a backup or use the backup as a guide.

I suppose in a pinch you could make a chroot and reemerge everything that you have installed in it, and use that as a basis for determining who owns what...

:-(
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
grin_
n00b
n00b
Posts: 13
Joined: Fri Mar 11, 2016 6:51 am

  • Quote

Post by grin_ » Wed Mar 16, 2016 11:22 pm

Use a stage3 tarball as a guide. Though most of it is going to be owned by root anyway I think, other than some portage specific stuff.
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Thu Mar 17, 2016 2:19 am

It quite depends on what was installed...

Mine was all root at the top level, but underneath that, all bets are off.

/var/lib/mysql owned by mysql... at least that one makes sense but not obvious.
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
Post Reply

4 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic