antiX / MX LinuxThis forum is for the discussion of antiX and MX Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: LXLE 18.04, MX 18, Mint XFCE, antiX 17
Posts: 32
Rep:
Why does Antix need a root password?
Firstly a couple of acknowledgements/apologies:
1) This is a MEPIS sub-forum, but there doesn't seem to be one for Antix, and the two distros appear to be very closely related, so hopefully this is an appropriate place to post.....
2) My question is pretty basic, and I would have expected to find the answer somewhere in this sub-forum, but have looked and have had no success, so here goes....
I've just installed Antix 16 onto one of my spare laptops, having been quite impressed while using it as a live distro on a usb stick. During the installation process, I was asked to create both a user password and a root password. So far, in using the system, I have only been asked for the user password, including when carrying out administrative tasks, using 'sudo' commands, and even when accessing the 'Root Terminal'. In fact, the system seems to work like Ubuntu and Mint, which only require user passwords for such things. I've also used distros like Mageia, where the root password is needed for accessing the Control Panel, but no such procedure seems to be evident in Antix. Can anyone shed any light?
Last edited by Summer Deep; 10-15-2016 at 01:21 AM.
It's useful to have an alternative way of getting root access. For example, supposing you edited your sudoers file with something other than visudo. People are often warned about doing that but it still happens. They then miss out on the visudo check for syntax errors. Or they might use visudo and not realise the importance of the syntax warnings and file anyway. In either case, the errors in sudoers make it impossible to use sudo from that point on. In a distro like Ubuntu, that puts you into a loop. You can't correct the error by using sudo visudo because sudo doesn't work, and you can't become root to get around that.
I read a post once by someone who had, as an experiment, activated an option in sudoers to get additional info from /etc/sudoers.d. He didn't realise that this constitutes a syntax error if there are no files in that directory, and he couldn't use sudo to get himself out of that hole. And of course he couldn't just create the files because that requires root access!
In AntiX, the solution is simple: log in as root or use su. If you don't have a root login, you'd have to boot from something like SystemRescue to clear up the mess.
KISS tries to rule in AntiX land. Certain functions in control panel require a password as far as I know. System>Manage Packages and stuff.
I sudo -i once in all to get into root instead of su. But If I want to drop down into smxi and install liqourix kernels. Another AntiX feature. Or use sgfxi script to install a proprietary graphics driver while I am dropped down into a command line line smxi screen.
Point is. I need to be root to get the ball rolling for the above as far as I know. Sudo won't cut it for that scenario.
Distribution: LXLE 18.04, MX 18, Mint XFCE, antiX 17
Posts: 32
Original Poster
Rep:
Thanks for the replies, folks. Some of this stuff is a bit over my head as a relative newcomer to Linux, but every little helps of course. I rather suspected that there might be a log-in aspect to this root password business, but the only occasions on which I've ever logged in as root are in 4M Linux, where the user is 'Root' by default (don't ask me why...).
Last edited by Summer Deep; 10-15-2016 at 01:00 PM.
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 631
Rep:
History lesson 1: antiX
For a long time antiX did NOT have sudo set up by default (except for a few apps) and every time user was prompted for a password, user had to give the ROOT one. This changed in antiX-15 (and 16) as a result of feedback from users and devs because for some reason the root password could not be saved for the session. (Basically this meant that each time you opened an app that needed root/superuser privileges, you were prompted with entering the root password).
In antiX-16, in the control centre, user can set whether to use sudo or root for non-user privileges.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.