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


Groups > linux.debian.user > #245131

Re: One-user system. Was "One user system."

From Andrei POPESCU <andreimpopescu@gmail.com>
Newsgroups linux.debian.user
Subject Re: One-user system. Was "One user system."
Date 2022-02-09 12:10 +0100
Message-ID <DOT1g-BQZ-9@gated-at.bofh.it> (permalink)
References <DM64G-42Z-3@gated-at.bofh.it> <DM64F-42Z-1@gated-at.bofh.it> <DM7Ds-546-13@gated-at.bofh.it> <DMriP-j7-9@gated-at.bofh.it> <DNbYl-2RR-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Vi, 04 feb 22, 10:34:38, peter@easthope.ca wrote:
> 
> root@joule:/root# df | grep sd
> /dev/sda2        7159288  6635136    140768  98% /
> /dev/sda4      131124764 12951820 111512132  11% /home
> /dev/sdb1        3658244  2026200   1446196  59% /home/root/MY
> 
> Note that / is 98% full whereas /home is 11% full. The intention in 
> moving the root home directory from / to /home is just to have space 
> for my data. 

It's unclear what you mean by "data" here, but typically the things that 
are expected to reside in a (super)user's home directory are mostly 
small, i.e. dotfiles and the likes.

Everything else can just be stored elsewhere, no need to relocate the 
home directory itself.

> Yes, 98% needs attention.
> 
> Rather than link /root to /home/root probably better to edit 
> /etc/passwd to have root homed at /home/root. Can try that.
> 
> > You may hit snags. Some programs might refuse to run, or do
> > strange things because they're written to distinguish between
> > root and an ordinary user.
> 
> Used it since yesterday with no significant problem.

It wouldn't surprise me to find out some application is explicitly hard 
coding '/root' as the home directory for the root user, regardless of 
what is specified in /etc/passwd.

> > But hey, it could be quite exciting, like carrying a cocked
> > revolver tucked into your waistband. One casual typo, one
> > misplaced space, and you can blow away a whole disk.
> 
> I view this as an experiment.  If I destroy the system, I reinstall.  
> The debian installer is moderately easy to use.  =8~)
> 
> Also I have the spare machine ready to go as described in the smartd 
> thread.
> 
> Did you use DOS decades ago?  Have you clobbered a DOS system?

More than once :)

I've switched to using sudo because it encourages me to use root only 
when strictly required.

Many admin tools work fine without root permissions when used only to 
retrieve information (e.g. 'apt', 'systemctl') as opposed to do changes 
to the system. It might help to add your user to group 'adm' 
('journalctl') or add [/usr]/sbin to your $PATH ('zpool', 'zfs').

If something really needs root (e.g. 'dmesg') it's just a simple Ctrl-a 
and type 'sudo<space><enter>', especially if sudo is configured to allow 
that specific command without providing a password ;)

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

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


Thread

Re: One user system. john doe <johndoe65534@mail.com> - 2022-02-01 19:30 +0100
  Re: One user system. Bijan Soleymani <bijan@psq.com> - 2022-02-01 20:00 +0100
  Re: One user system. peter@easthope.ca - 2022-02-01 21:10 +0100
    Re: One user system. Bijan Soleymani <bijan@psq.com> - 2022-02-01 21:10 +0100
      Re: One user system. Brian <ad44@cityscape.co.uk> - 2022-02-01 22:00 +0100
      Re: One user system. Charles Curley <charlescurley@charlescurley.com> - 2022-02-02 00:10 +0100
      Re: One user system. Nate Bargmann <n0nb@n0nb.us> - 2022-02-02 02:10 +0100
        Re: One user system. Bijan Soleymani <bijan@psq.com> - 2022-02-02 06:30 +0100
    Re: One user system. "Andrew M.A. Cater" <amacater@einval.com> - 2022-02-01 21:10 +0100
    Re: One user system. john doe <johndoe65534@mail.com> - 2022-02-02 08:10 +0100
      Re: One user system. peter@easthope.ca - 2022-02-02 18:20 +0100
    Re: One user system. David Wright <deblis@lionunicorn.co.uk> - 2022-02-02 18:10 +0100
      Re: One-user system.  Was "One user system." peter@easthope.ca - 2022-02-04 20:00 +0100
        [SOLVED] Re: One-user system.  peter@easthope.ca - 2022-02-05 07:10 +0100
          Re: One-user system. David Wright <deblis@lionunicorn.co.uk> - 2022-02-07 03:10 +0100
        Re: One-user system.  Was "One user system." Andrei POPESCU <andreimpopescu@gmail.com> - 2022-02-09 12:10 +0100
          Re: One-user system.  Was "One user system." rhkramer@gmail.com - 2022-02-10 17:20 +0100
            Re: One-user system.  Was "One user system." Joe <joe@jretrading.com> - 2022-02-10 21:30 +0100
              Re: One-user system.  Was "One user system." David Wright <deblis@lionunicorn.co.uk> - 2022-02-13 18:10 +0100
            Re: One-user system.  Was "One user system." Andrei POPESCU <andreimpopescu@gmail.com> - 2022-02-11 20:20 +0100
      [SOLVED] Re: One-user system. peter@easthope.ca - 2022-05-06 19:10 +0200
        Re: [SOLVED] Re: One-user system. Greg Wooledge <greg@wooledge.org> - 2022-05-06 19:20 +0200
          Re: [SOLVED] Re: One-user system. gene heskett <gheskett@shentel.net> - 2022-05-06 19:30 +0200
          Re: [SOLVED] Re: One-user system. Eike Lantzsch ZP6CGE <zp6cge@gmx.net> - 2022-05-06 19:40 +0200
            Re: [OT] Re: One-user system. Nicolas George <george@nsup.org> - 2022-05-06 19:40 +0200
          Re: [SOLVED] Re: One-user system. "Thomas Schmitt" <scdbackup@gmx.net> - 2022-05-06 20:30 +0200
            Re: [SOLVED] Re: One-user system. Greg Wooledge <greg@wooledge.org> - 2022-05-06 20:50 +0200
            Re: [SOLVED] Re: One-user system. Erwan David <erwan@rail.eu.org> - 2022-05-06 20:50 +0200
            Re: [SOLVED] Re: One-user system. Dennis Wicks <wix@mgssub.com> - 2022-05-06 21:00 +0200
        Re: [SOLVED] Re: One-user system. "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2022-05-06 22:20 +0200
          Re: [SOLVED] Re: One-user system. John Hasler <john@sugarbit.com> - 2022-05-07 04:20 +0200
            Re: [SOLVED] Re: One-user system. Marc Shapiro <marcnshap@gmail.com> - 2022-05-12 08:40 +0200
              Re: [SOLVED] Re: One-user system. David Wright <deblis@lionunicorn.co.uk> - 2022-05-12 17:40 +0200
        Re: [SOLVED] Re: One-user system. Charles Curley <charlescurley@charlescurley.com> - 2022-05-06 22:20 +0200
        Re: [SOLVED] Re: One-user system. David Wright <deblis@lionunicorn.co.uk> - 2022-05-09 04:00 +0200
          Re: [SOLVED] Re: One-user system. peter@easthope.ca - 2022-06-28 15:50 +0200

csiph-web