How do I get the /etc/login.defs in a non login shell
SlackwareThis Forum is for the discussion of Slackware 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.
Possible Slack 11.0 bug? Please read at least the next three paragraphs. Especially so I ask of the guru's and those who help Mr. Volderki.
(as at bottom enclosed, startx makes a KDE Konsole have the CONSOLE_GROUPS whereas if instead I use a run level 4 in inittab then the same KDE Konsole *does not* have the CONSOLE_GROUPS)
I *like* having the CONSOLE_GROUPS (perhaps I'll revert back to using startx instead of having run level 4 in inittab)
Why the difference? Shouldn't there be consistency in how X and KDE (Konsole in KDE) performs irregardless of how X got started up?
Is this perhaps a Slackware 11.0 bug?
--
Since I'd had run level 4 in inittab, I have a KDM logon.
And, that said, in KDE, when I use a konsole, the /etc/login.defs (CONSOLE_GROUPS floppy:audio:video:cdrom) *do not* exist in such konsole.
--
(1.) I logged out of my KDE session. (2) I Logged onto tty6 as root. (3) As root, entered command: telinit 3 (4) Now in run level 3 (I checked, and nothing exists or is on ctrl-alt-F7 where KDM and/or KDE resides).
Ah, (many) *more* tty's now (smile) -- when we were in run level 4 we only had one tty which is tty6.
I think, in inittab I'll add tty5 to run level 4. Anyone do this, any prob with this, two tty's (5 and 6) while in run level 4.
--
Ok, *here's the big discovery*:
In tty1 logged in as user, I run startx
And now in KDE when I use a konsole the /etc/login.defs (CONSOLE_GROUPS floppy:audio:video:cdrom) *do exist* in such konsole.
Now in KDE, I have all of the tty's that were in run level 3
So, startx gets the CONSOLE_GROUPS into a KDE Konsole *and* (smile) it has me lots of tty's whereas (the next, yucky) a run level 4 in inittab makes me lose out on both the tty's and the CONSOLE_GROUPS into a KDE Konsole.
By default, run level 4 only has one console running (tty6). You can change which consoles are available in which run levels by editing /etc/inittab and searching for lines that start with c1, c2, c3, etc. and modifying the run levels field.
If you are running a desktop manager (xdm, kdm, gdm), the only way (sans PAM) you're going to get users to be in groups (other than their primary group, which is by default 'users') is to add them manually to the relevant groups in /etc/group.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.