Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-18-2007, 10:32 PM   #1
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
How do I get the /etc/login.defs in a non login shell

CONSOLE_GROUPS floppy:audio:video:cdrom

It, those, works just fine in tty6

But in konsole on Xwin on KDE it is without those.

I was afraid to do in the .bashrc, thus:

export CONSOLE_GROUPS=$CONSOLE_GROUPS:floppy:audio:video:cdrom

for fear that doing so might make it all happen twice in tty6

I was afraid to source the /etc/login.defs
(maybe I need to?)

Old 05-19-2007, 02:34 AM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,872

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
Sourcing should work fine and if it happens twice that won't hurt either.
Old 05-20-2007, 01:42 AM   #3
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Original Poster
Rep: Reputation: 50
Sourcing (in the .bashrc) caused bunch of errors when launch a (KDE) Konsole . . .

bunch of "command not found"'s

so called "commands" were the environment variables from the /etc/login.defs

Evidently it thought those were commands.

(I didn't try it, the id command) to see if I'd acquired the extra groups like I do have in tty6

export (in the .bashrc) as per my previous post, didn't work, did not get me in Konsole the extra groups memberships that tty6 has for me.

Anyone? Other ideas?

Old 05-20-2007, 07:13 PM   #4
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Original Poster
Rep: Reputation: 50
I just now discovered that:

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.

Old 05-20-2007, 07:22 PM   #5
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Original Poster
Rep: Reputation: 50
BTW, startx keeps all of the tty's

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.

What gives?

Old 05-20-2007, 07:25 PM   #6
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
startx is quite a bit different then the daemon that starts for runlevel 4

but as for loosing the ttys that weird

Last edited by slimm609; 05-20-2007 at 07:31 PM.
Old 05-20-2007, 07:40 PM   #7
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
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.
Old 05-20-2007, 11:17 PM   #8
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,227

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
umask & /etc/login.defs gepesz Linux - Software 2 09-04-2011 04:02 AM
How to activate FAIL_DELAY in /etc/login.defs ukursat Linux - Security 9 05-15-2007 02:47 AM
login.defs password expiry noir911 Linux - General 1 01-07-2007 12:38 PM
/etc/login.defs binary_0011 Linux - Newbie 1 11-06-2006 09:44 PM
/etc/ Login.defs will not save my settings??? wardialer Linux - Security 2 03-09-2005 09:37 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration