LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-18-2007, 09:32 PM   #1
acummings
Member
 
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?)

--
Alan.
 
Old 05-19-2007, 01:34 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Sourcing should work fine and if it happens twice that won't hurt either.
 
Old 05-20-2007, 12:42 AM   #3
acummings
Member
 
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?

--
Alan.
 
Old 05-20-2007, 06:13 PM   #4
acummings
Member
 
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.

--
Alan.
 
Old 05-20-2007, 06:22 PM   #5
acummings
Member
 
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?

--
Alan.
 
Old 05-20-2007, 06:25 PM   #6
slimm609
Member
 
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 06:31 PM.
 
Old 05-20-2007, 06:40 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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, 10:17 PM   #8
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

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


Reply



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 03:02 AM
How to activate FAIL_DELAY in /etc/login.defs ukursat Linux - Security 9 05-15-2007 01:47 AM
login.defs password expiry noir911 Linux - General 1 01-07-2007 11:38 AM
/etc/login.defs binary_0011 Linux - Newbie 1 11-06-2006 08:44 PM
/etc/ Login.defs will not save my settings??? wardialer Linux - Security 2 03-09-2005 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:42 PM.

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