LinuxQuestions.org
Review your favorite Linux distribution.
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 08-02-2007, 07:45 AM   #1
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
SU Behavior in Slackware 12


I noticed that su - would not execute the environment settings; i.e, the content of .profile in the "target" account. When su - was executed, the prompt would be a $ or # depending on the user (and that none of the environment settings for the user would be set).

I use Korn Shell exclusively, so a user will have a .profile and a .kshrc file to set environment variables; these were ignored (and, I imagine, ignored in Bash, Bourne or C-Shell too).

Looking around, there is /etc/login.defs that contains a variable SU_NAME; I commented that out and the behavior of su is back to what I expect it to be. The blurb for SU_NAME is:
Code:
#
# If defined, the command name to display when running "su -".  For
# example, if this is defined as "su" then a "ps" will display the
# command is "-su".  If not defined, then "ps" would display the
# name of the shell actually being run, e.g. something like "-sh".
#
Lordy, I do so love improvements...
 
Old 08-03-2007, 04:04 AM   #2
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
it's quite a shock this 12.0, ain't it
 
Old 08-03-2007, 04:55 AM   #3
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
for bash .profile is executed.
maybe ksh is checking how it is invoked?

Last edited by erklaerbaer; 08-03-2007 at 05:03 AM.
 
Old 08-03-2007, 07:27 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by SCerovec
it's quite a shock this 12.0, ain't it
Hi,

Not really! I think the biggest problem for Slackware 12.0 is that most users fail to read the documentation therefore a 'gotcha' jumps out.

RTFM 'ReadTheFineManual' still applies!

Sure, some things should be a turnkey for this type of user but that is not the Slackware way to hold their hands.
 
  


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
Two NICs - Slackware 10.2 - Strange behavior ScottReed Linux - Networking 2 02-09-2007 04:14 PM
Various Bad Behavior apurdy Mandriva 5 02-21-2006 09:13 AM
"vi" behavior in slackware masand Slackware 6 02-19-2005 12:37 PM
ls command behavior day4night Linux - Newbie 7 01-25-2004 12:57 AM
ls -l behavior vjl323 Mandriva 3 11-05-2003 07:30 AM

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

All times are GMT -5. The time now is 09:27 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