I did some fresh installs this past week on some home machines. One of the machines has multiple accounts on it.
I used my wife's account (1002 - after Guest and frank) to set up her machine, making sure I made her account part of the sudo group so that I could administer it from her account. I failed to add her to the lpadmin group. I could not use the KDE control center to set up a printer. It kept challenging my right to do so, popping up a box showing root as the user, and asking for the root password. Tried CUPS in a browser as well, but no change. The 'buntus do not enable root, so there is no root password. I was therefore stopped dead in my tracks. I even tried opening the control center from a root shell with kdesudo. That didn't work either, which really had me stumped.
In trying to find out what was wrong, I moved to my account on that machine, and did set up a printer with no problem. After checking the difference between the two accounts, I discovered my failure to add her to the lpadmin group.
Interesting that not even a root shell would get me past that. sudo must have some limitations if used from a user account.
I have always, in the past, enabled the root account, and used it to do administrative duties when needed. There is a second advantage to that in that the root password then becomes different from the user account password using sudo. One does not then need to enable sudo for the user account, effectively preventing the user from messing up a machine by mistake. I have gotten away from that in recent years because 'conventional wisdom' tends to use sudo. And quite honestly, it takes more time to set up a root account.
I may have to rethink that.
Frank.
I used my wife's account (1002 - after Guest and frank) to set up her machine, making sure I made her account part of the sudo group so that I could administer it from her account. I failed to add her to the lpadmin group. I could not use the KDE control center to set up a printer. It kept challenging my right to do so, popping up a box showing root as the user, and asking for the root password. Tried CUPS in a browser as well, but no change. The 'buntus do not enable root, so there is no root password. I was therefore stopped dead in my tracks. I even tried opening the control center from a root shell with kdesudo. That didn't work either, which really had me stumped.
In trying to find out what was wrong, I moved to my account on that machine, and did set up a printer with no problem. After checking the difference between the two accounts, I discovered my failure to add her to the lpadmin group.
Interesting that not even a root shell would get me past that. sudo must have some limitations if used from a user account.
I have always, in the past, enabled the root account, and used it to do administrative duties when needed. There is a second advantage to that in that the root password then becomes different from the user account password using sudo. One does not then need to enable sudo for the user account, effectively preventing the user from messing up a machine by mistake. I have gotten away from that in recent years because 'conventional wisdom' tends to use sudo. And quite honestly, it takes more time to set up a root account.
I may have to rethink that.
Frank.
Comment