How do I get the /etc/login.defs in a non login shell
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.