Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #244925 > unrolled thread
| Started by | john doe <johndoe65534@mail.com> |
|---|---|
| First post | 2022-02-01 19:30 +0100 |
| Last post | 2022-06-28 15:50 +0200 |
| Articles | 20 on this page of 36 — 21 participants |
Back to article view | Back to linux.debian.user
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
Page 1 of 2 [1] 2 Next page →
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2022-02-01 19:30 +0100 |
| Subject | Re: One user system. |
| Message-ID | <DM64F-42Z-1@gated-at.bofh.it> |
On 2/1/2022 7:11 PM, peter@easthope.ca wrote: > Hi, > > https://wiki.debian.org/Root states, > > "At installation time, you are asked whether you want to use the root account or not. > ... > If not, no root account is enabled and the password of the first user created will be used for administration tasks." > > Are instructions to configure that post installation available online? > > Tips? > If my understanding is correct, you will need to use 'sudo'. -- John Doe
[toc] | [next] | [standalone]
| From | Bijan Soleymani <bijan@psq.com> |
|---|---|
| Date | 2022-02-01 20:00 +0100 |
| Message-ID | <DM6xL-4d3-37@gated-at.bofh.it> |
| In reply to | #244925 |
On 2022-02-01 13:29, john doe wrote: > If my understanding is correct, you will need to use 'sudo'. > Yes. sudo passwd Should allow you so set a password for root. It will ask for your password first (if you haven't run sudo recently), and then new password for root and confirmation of that password. Bijan
[toc] | [prev] | [next] | [standalone]
| From | peter@easthope.ca |
|---|---|
| Date | 2022-02-01 21:10 +0100 |
| Message-ID | <DM7Ds-546-13@gated-at.bofh.it> |
| In reply to | #244925 |
From: john doe <johndoe65534@mail.com>
Date: Tue, 1 Feb 2022 19:29:02 +0100
> If my understanding is correct, you will need to use 'sudo'.
Thanks. Still a multi-user system.
Whereas puppy linux has one user, root.
To make debian one-user I think of
mkdir /home/root ; cp -r /root/* /home/root ; rm -r /root ; ln -s /home/root /root
cp <anythingIwantFrom/home/me> /home/root
Then proceed as root rather than me.
Googling "linux one account" returned https://login.ubuntu.com/ and
other pages not relevant to the concept. Odd that the topic doesn't
get more attention.
Thx, ... P.
--
mobile: +1 778 951 5147
VoIP: +1 604 670 0140
48.7693 N 123.3053 W
[toc] | [prev] | [next] | [standalone]
| From | Bijan Soleymani <bijan@psq.com> |
|---|---|
| Date | 2022-02-01 21:10 +0100 |
| Message-ID | <DM7Ds-546-17@gated-at.bofh.it> |
| In reply to | #244932 |
On 2022-02-01 14:47, peter@easthope.ca wrote: > Thanks. Still a multi-user system. > > Whereas puppy linux has one user, root. > > To make debian one-user I think of ... > > Then proceed as root rather than me. Oh! Is your goal to only have root? I assumed you wanted to login as root, but didn't configure a password for root at setup. As far as I know there's no option in the standard install to not create a user account and only create a root account. But assuming you have a root password set just remove non-root users: deluser username Just keep in mind stuff like ssh isn't configured to let root log in by default. (Important in case you're doing this remotely and won't be able to login again, without changing the default settings). I can't think of a case where you'd want to remove all non root users though... Bijan
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2022-02-01 22:00 +0100 |
| Message-ID | <DM8pP-5kp-3@gated-at.bofh.it> |
| In reply to | #244933 |
On Tue 01 Feb 2022 at 15:08:44 -0500, Bijan Soleymani wrote: > On 2022-02-01 14:47, peter@easthope.ca wrote: > > Thanks. Still a multi-user system. > > > > Whereas puppy linux has one user, root. > > > > To make debian one-user I think of > ... > > > > Then proceed as root rather than me. > > Oh! Is your goal to only have root? I assumed you wanted to login as root, > but didn't configure a password for root at setup. > > As far as I know there's no option in the standard install to not create a > user account and only create a root account. Depends on what you mean by "standard". From user-setup-udeb_1.88_all.udeb. Template: passwd/make-user Type: boolean Default: true Description: Create a normal user account now? It's a bad idea to use the root account for normal day-to-day activities, such as the reading of electronic mail, because even a small mistake can result in disaster. You should create a normal user account to use for those day-to-day tasks. The OP's requirements are very nurky. Whatever he wants can be done from the installer. -- Brian.
[toc] | [prev] | [next] | [standalone]
| From | Charles Curley <charlescurley@charlescurley.com> |
|---|---|
| Date | 2022-02-02 00:10 +0100 |
| Message-ID | <DMarE-6Lg-17@gated-at.bofh.it> |
| In reply to | #244933 |
On Tue, 1 Feb 2022 15:08:44 -0500 Bijan Soleymani <bijan@psq.com> wrote: > I can't think of a case where you'd want to remove all non root users > though... The only use case I can think of is if you want all the security of Windows 95. Don't do this. There are excellent reasons to separate system administration from day-to-day stuff. -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/
[toc] | [prev] | [next] | [standalone]
| From | Nate Bargmann <n0nb@n0nb.us> |
|---|---|
| Date | 2022-02-02 02:10 +0100 |
| Message-ID | <DMcjM-7S9-3@gated-at.bofh.it> |
| In reply to | #244933 |
[Multipart message — attachments visible in raw view] — view raw
* On 2022 01 Feb 14:09 -0600, Bijan Soleymani wrote: > On 2022-02-01 14:47, peter@easthope.ca wrote: > > Thanks. Still a multi-user system. > > > > Whereas puppy linux has one user, root. > > > > To make debian one-user I think of > ... > > > > Then proceed as root rather than me. > > Oh! Is your goal to only have root? I assumed you wanted to login as root, > but didn't configure a password for root at setup. I must be the odd one out as I interpreted the OP as having set a root password but now wanting to remove it so as to have just the main user set to do root's work and that root can no longer log in directly. I hope the OP can clarify! - Nate -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true." Web: https://www.n0nb.us Projects: https://github.com/N0NB GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819
[toc] | [prev] | [next] | [standalone]
| From | Bijan Soleymani <bijan@psq.com> |
|---|---|
| Date | 2022-02-02 06:30 +0100 |
| Message-ID | <DMgnn-1UH-1@gated-at.bofh.it> |
| In reply to | #244941 |
On 2022-02-01 20:01, Nate Bargmann wrote: > I must be the odd one out as I interpreted the OP as having set a root > password but now wanting to remove it so as to have just the main user > set to do root's work and that root can no longer log in directly. I > hope the OP can clarify! I guess that would be: sudo passwd -d to delete the password or: sudo passwd -l to lock the paassword (this can be undone later with sudo passwd -u) Bijan
[toc] | [prev] | [next] | [standalone]
| From | "Andrew M.A. Cater" <amacater@einval.com> |
|---|---|
| Date | 2022-02-01 21:10 +0100 |
| Message-ID | <DM7Ds-546-11@gated-at.bofh.it> |
| In reply to | #244932 |
On Tue, Feb 01, 2022 at 11:47:35AM -0800, peter@easthope.ca wrote: > From: john doe <johndoe65534@mail.com> > Date: Tue, 1 Feb 2022 19:29:02 +0100 > > If my understanding is correct, you will need to use 'sudo'. > > Thanks. Still a multi-user system. > > Whereas puppy linux has one user, root. > > To make debian one-user I think of > > mkdir /home/root ; cp -r /root/* /home/root ; rm -r /root ; ln -s /home/root /root > cp <anythingIwantFrom/home/me> /home/root > > Then proceed as root rather than me. > > Googling "linux one account" returned https://login.ubuntu.com/ and > other pages not relevant to the concept. Odd that the topic doesn't > get more attention. > > Thx, ... P. > > > -- > mobile: +1 778 951 5147 > VoIP: +1 604 670 0140 > 48.7693 N 123.3053 W > Hi, That seems like a very bad idea for security to encourage _everything_ to be done as root and some desktop environments would complain The Ubuntu and others model of creating one user and giving that user sudo powers means only one user on the system. Every Unix system is inherently multi-user/multi role, I think. All the very best, as ever, Andy Cater
[toc] | [prev] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2022-02-02 08:10 +0100 |
| Message-ID | <DMhW9-2UT-3@gated-at.bofh.it> |
| In reply to | #244932 |
On 2/1/2022 8:47 PM, peter@easthope.ca wrote: > From: john doe <johndoe65534@mail.com> > Date: Tue, 1 Feb 2022 19:29:02 +0100 >> If my understanding is correct, you will need to use 'sudo'. > > Thanks. Still a multi-user system. > If you do not want the regular user, you can simply lock/disable it. This way you can use root to your liking (remotely or locally) and forget about other user(s). I must say, I concur with others in this thread on not removing a single non-root user. -- John Doe
[toc] | [prev] | [next] | [standalone]
| From | peter@easthope.ca |
|---|---|
| Date | 2022-02-02 18:20 +0100 |
| Message-ID | <DMrst-mi-5@gated-at.bofh.it> |
| In reply to | #244944 |
From: john doe <johndoe65534@mail.com>
Date: Wed, 2 Feb 2022 08:04:28 +0100
> I must say, I concur with others in this thread on not removing a single
> non-root user.
Right oh; I don't aim to remove my original ordinary user account.
> If you do not want the regular user, you can simply lock/disable it.
Or just ignore it unless a requirement surfaces.
Thx, ... P.
--
mobile: +1 778 951 5147
VoIP: +1 604 670 0140
48.7693 N 123.3053 W
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2022-02-02 18:10 +0100 |
| Message-ID | <DMriP-j7-9@gated-at.bofh.it> |
| In reply to | #244932 |
On Tue 01 Feb 2022 at 11:47:35 (-0800), peter@easthope.ca wrote: > From: john doe <johndoe65534@mail.com> > Date: Tue, 1 Feb 2022 19:29:02 +0100 > > If my understanding is correct, you will need to use 'sudo'. > > Thanks. Still a multi-user system. > > Whereas puppy linux has one user, root. And it's been designed with that in mind. Debian hasn't. > To make debian one-user I think of > > mkdir /home/root ; cp -r /root/* /home/root ; rm -r /root ; ln -s /home/root /root > cp <anythingIwantFrom/home/me> /home/root I can't understand this. If you carry out your intention, then /home becomes just another top-level directory like /media. You don't need to put /root into it just to make a point. You can use it for just your data files, and not your dotfiles — particularly if /home is on a separate partition. > Then proceed as root rather than me. 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. 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. > Googling "linux one account" returned https://login.ubuntu.com/ and > other pages not relevant to the concept. Odd that the topic doesn't > get more attention. Not really — except perhaps on Puppy where it's been seen as controversial, and hence discussed. ISTR earlier posts where you've run up against permission problems, but IMHO just running as perpetual root is not a sensible answer. Cheers, David.
[toc] | [prev] | [next] | [standalone]
| From | peter@easthope.ca |
|---|---|
| Date | 2022-02-04 20:00 +0100 |
| Subject | Re: One-user system. Was "One user system." |
| Message-ID | <DNbYl-2RR-1@gated-at.bofh.it> |
| In reply to | #244968 |
"One-user" is probably the correct grammar.
David,
From: David Wright <deblis@lionunicorn.co.uk>
Date: Wed, 2 Feb 2022 11:08:28 -0600
> And it's been designed with that in mind. Debian hasn't.
I wondered whether others had worked out a recipe for single-user. In
fact, yes, there's DebianDog. References 7 and 8 here.
https://en.wikipedia.org/wiki/Light-weight_Linux_distribution
> I can't understand this. If you carry out your intention, then
> /home becomes just another top-level directory like /media.
> You don't need to put /root into it just to make a point. You
> can use it for just your data files, and not your dotfiles —
> particularly if /home is on a separate partition.
I don't understand either. We're "at crossed purposes"?
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.
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.
> 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?
If interested, try DebianDog or Puppy or my simpistic approach.
> Not really — except perhaps on Puppy where it's been seen as
> controversial, and hence discussed.
Discussion here. https://wikka.puppylinux.com/spot
Note priviledge and and security aspects.
> ISTR earlier posts where you've run up against permission problems, ...
Not my motivation. This computer isn't a mainframe system with
multiple users. I'm just exploring simplifications.
Thanks for the feedback, ... P.
--
mobile: +1 778 951 5147
VoIP: +1 604 670 0140
48.7693 N 123.3053 W
[toc] | [prev] | [next] | [standalone]
| From | peter@easthope.ca |
|---|---|
| Date | 2022-02-05 07:10 +0100 |
| Subject | [SOLVED] Re: One-user system. |
| Message-ID | <DNmqJ-13g-1@gated-at.bofh.it> |
| In reply to | #245008 |
From: David Wright <deblis@lionunicorn.co.uk>
Date: Wed, 2 Feb 2022 11:08:28 -0600
> 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.
System destruction is exasperating. Lapse in security is another
risk; possibly more serious. My knowledge is meagre and this was
helpful.
The Illusion of Privacy/Security using ANY Web-browser
https://forum.puppylinux.com/viewtopic.php?t=1583
Mitigation of risk.
https://wikka.puppylinux.com/spot
Rather than reinvent the wheel, I should use a product of extensive
development.
http://wikka.puppylinux.com/DebianDog
https://github.com/DebianDog/
Regards, ... P.
--
mobile: +1 778 951 5147
VoIP: +1 604 670 0140
48.7693 N 123.3053 W
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2022-02-07 03:10 +0100 |
| Subject | Re: One-user system. |
| Message-ID | <DO1Dz-4bN-3@gated-at.bofh.it> |
| In reply to | #245011 |
On Fri 04 Feb 2022 at 21:41:24 (-0800), peter@easthope.ca wrote: > From: David Wright <deblis@lionunicorn.co.uk> > Date: Wed, 2 Feb 2022 11:08:28 -0600 > > 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. > > System destruction is exasperating. Lapse in security is another > risk; possibly more serious. My knowledge is meagre and this was > helpful. > > The Illusion of Privacy/Security using ANY Web-browser > https://forum.puppylinux.com/viewtopic.php?t=1583 I didn't get far down the first page, and certainly not through all 53 posts, before reaching: "Think a different Operating System provides any greater security? privacy? because under it you run as a User with limited privileges? Well, I booted into Linux Mint Ulyana. Iron web-browser required that I provide a password to run it. But once it was running, Atttachments>Add gave me access to my mounted hard-drive.. And worse than under Puppies, Linux Mint Ulyana would automatically mount partitions which weren't already mounted. :shock:" There's no explanation of what "password" was given, so any conclusions are moot. But if the article is supposed to blow a hole in Puppy's securtiy model, well, so what. And then I read the fourth post, which seemed to be using umask and chmod to configure what Debian gives you already. > Mitigation of risk. > https://wikka.puppylinux.com/spot I don't know what "spot" and "fido" are all about, unless to recreate the conventional concept of Ordinary Users. > Rather than reinvent the wheel, I should use a product of extensive > development. > http://wikka.puppylinux.com/DebianDog > https://github.com/DebianDog/ That depends on whether you trust the system's developers. My trust in Debian has been forged through 25 years of use, and by reading technical reviews over the years by others. Cheers, David.
[toc] | [prev] | [next] | [standalone]
| From | Andrei POPESCU <andreimpopescu@gmail.com> |
|---|---|
| Date | 2022-02-09 12:10 +0100 |
| Subject | Re: One-user system. Was "One user system." |
| Message-ID | <DOT1g-BQZ-9@gated-at.bofh.it> |
| In reply to | #245008 |
[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
[toc] | [prev] | [next] | [standalone]
| From | rhkramer@gmail.com |
|---|---|
| Date | 2022-02-10 17:20 +0100 |
| Subject | Re: One-user system. Was "One user system." |
| Message-ID | <DPkkO-TkB-7@gated-at.bofh.it> |
| In reply to | #245131 |
On Wednesday, February 09, 2022 06:08:16 AM Andrei POPESCU wrote: > I've switched to using sudo because it encourages me to use root only > when strictly required. That's a good idea, but I'll mention what I do -- I may have started before sudo existed (or, at least, before I knew about it). I use kde and keep several konsole (terminals) open, at on one, I open it as root and set the background to be a different color than the non-root konsole (a shade of yello). (Once you pick a color for the background (or any of variety of other user preferences), you can save those so, for example, every time I open a konsole as root, it gets those preferences.
[toc] | [prev] | [next] | [standalone]
| From | Joe <joe@jretrading.com> |
|---|---|
| Date | 2022-02-10 21:30 +0100 |
| Subject | Re: One-user system. Was "One user system." |
| Message-ID | <DPoeJ-VD6-7@gated-at.bofh.it> |
| In reply to | #245180 |
On Thu, 10 Feb 2022 11:11:01 -0500 rhkramer@gmail.com wrote: > On Wednesday, February 09, 2022 06:08:16 AM Andrei POPESCU wrote: > > I've switched to using sudo because it encourages me to use root > > only when strictly required. > > That's a good idea, but I'll mention what I do -- I may have started > before sudo existed (or, at least, before I knew about it). > > I use kde and keep several konsole (terminals) open, at on one, I > open it as root and set the background to be a different color than > the non-root konsole (a shade of yello). > > (Once you pick a color for the background (or any of variety of other > user preferences), you can save those so, for example, every time I > open a konsole as root, it gets those preferences. > Just an additional note if you use mc: you can change the colours of the mc window and save the changes, but when you close mc the previous config file will overwrite the new one. What you have to do is to save the config, then rename it from outside mc with mc still running. Close mc, rename the new config file back to the original name, then it will be used next time you start mc. A bit of a faff, which is why I don't change things often. But my server is console-only, and I found mc to be an excellent file manager and simple text editor for it. I also have different background colours depending on whether it is opened with sudo or not. Yes, it's a dangerous beast as root, but what are you doing on a server if not admin work (carefully)? -- Joe
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2022-02-13 18:10 +0100 |
| Subject | Re: One-user system. Was "One user system." |
| Message-ID | <DQqxP-1zfn-1@gated-at.bofh.it> |
| In reply to | #245185 |
On Thu 10 Feb 2022 at 20:26:57 (+0000), Joe wrote:
> On Thu, 10 Feb 2022 11:11:01 -0500 rhkramer@gmail.com wrote:
> > On Wednesday, February 09, 2022 06:08:16 AM Andrei POPESCU wrote:
> > > I've switched to using sudo because it encourages me to use root
> > > only when strictly required.
> >
> > That's a good idea, but I'll mention what I do -- I may have started
> > before sudo existed (or, at least, before I knew about it).
> >
> > I use kde and keep several konsole (terminals) open, at on one, I
> > open it as root and set the background to be a different color than
> > the non-root konsole (a shade of yello).
> >
> > (Once you pick a color for the background (or any of variety of other
> > user preferences), you can save those so, for example, every time I
> > open a konsole as root, it gets those preferences.
> >
>
> Just an additional note if you use mc: you can change the colours of the
> mc window and save the changes, but when you close mc the previous
> config file will overwrite the new one. What you have to do is to save
> the config, then rename it from outside mc with mc still running. Close
> mc, rename the new config file back to the original name, then it will
> be used next time you start mc.
>
> A bit of a faff, which is why I don't change things often. But my
> server is console-only, and I found mc to be an excellent file manager
> and simple text editor for it. I also have different background colours
> depending on whether it is opened with sudo or not.
Why not just set these five file permissions to readonly?
.config/mc/{ini,panels.ini} .cache/mc/Tree{,.tmp} .local/share/mc/history
The last might need to be owned by root (for normal users), or
chattr +i if you run mc as root. (I don't.)
> Yes, it's a dangerous beast as root, but what are you doing on a server
> if not admin work (carefully)?
Cheers,
David.
[toc] | [prev] | [next] | [standalone]
| From | Andrei POPESCU <andreimpopescu@gmail.com> |
|---|---|
| Date | 2022-02-11 20:20 +0100 |
| Subject | Re: One-user system. Was "One user system." |
| Message-ID | <DPJCy-18Ke-11@gated-at.bofh.it> |
| In reply to | #245180 |
[Multipart message — attachments visible in raw view] — view raw
On Jo, 10 feb 22, 11:11:01, rhkramer@gmail.com wrote: > On Wednesday, February 09, 2022 06:08:16 AM Andrei POPESCU wrote: > > I've switched to using sudo because it encourages me to use root only > > when strictly required. > > That's a good idea, but I'll mention what I do -- I may have started before > sudo existed (or, at least, before I knew about it). > > I use kde and keep several konsole (terminals) open, at on one, I open it as > root and set the background to be a different color than the non-root konsole > (a shade of yello). > > (Once you pick a color for the background (or any of variety of other user > preferences), you can save those so, for example, every time I open a konsole > as root, it gets those preferences. I did use to have a root window constantly open and "Ctrl-a r" is still opening a 'sudo -i' window in tmux. The trouble with that is that I would tend to use the root console for non-root things. Besides, it's annoying to 'cd' in the non-root terminal in some deep directory structure only to find out you need root permissions to do what you actually needed to do when you got there. With sudo I'm incentivized to use non-root as much as possible, even if only because I'm too lazy to switch terminals or type 4 letters and a space ;) Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | linux.debian.user
csiph-web