I'm having a problem in that a few "admins" who have been given root
access to some of my machines, and from whom I cannot take it away,
seem to refuse to put the dash on an su. Because they don't set up a
good prompt (IMHO), they have no idea of their cwd, and therefore do
things like chmods/chowns/etc in wrong directories and screw things
up. Is there a way to force my own PS1 on them. Forcing the target
user (root in this case) env. on them would be a bad option because
they have so many env. variables set that they need to reference.
Thanks.
|
|
0
|
|
|
|
Reply
|
mlibhart
|
7/8/2004 1:57:17 AM |
|
Matthew Libhart wrote:
> I'm having a problem in that a few "admins" who have been given root
> access to some of my machines, and from whom I cannot take it away,
> seem to refuse to put the dash on an su. Because they don't set up a
> good prompt (IMHO), they have no idea of their cwd, and therefore do
> things like chmods/chowns/etc in wrong directories and screw things
> up. Is there a way to force my own PS1 on them. Forcing the target
> user (root in this case) env. on them would be a bad option because
> they have so many env. variables set that they need to reference.
>
> Thanks.
Unless you are the boss and are responsible for writing all of your
standard operating procedures, you can not "force" an environment
on another user. I mean, you could, but it wouldn't be very wise.
How else are they going to learn, except from their own mistakes.
Some time ago one of the admins here decided that all the users
needed to have their path in their unix prompt. So he just went
into our master startup file and changed it. He came very close
to getting fired.
Many people like to have their current path in their prompt. Personally,
I think it's a waste of time. I feel that, "If you don't know where you
are all the time on the system, then you don't belong there". But
that's just my opinion.
You should stick to less volatile subjects then environments, like
religion or politics. Next you'll be telling them what editor to use.
--
Martin E. Meserve
k7mem@myrealbox.com
http://www.k7mem.150m.com
|
|
0
|
|
|
|
Reply
|
K7MEM
|
7/8/2004 2:36:38 PM
|
|
Environment doesn't appear in my subject, like I said in my original
message, I don't want to force and environment on them, just a prompt.
I agree, if they can't handle the responsibility they shouldn't be
there, but I don't get to kick them out, so all I can do is try to
save them from themselves. I don't care what people do as themselves,
but when they're root, then they get to do it my way, because I have
to fix it when they break it.
Not trying to start any great controversy, so if anyone has any
constructive advice on how to force a prompt, that'd be great.
Thanks.
|
|
0
|
|
|
|
Reply
|
mlibhart
|
7/12/2004 7:17:31 PM
|
|
|
2 Replies
227 Views
(page loaded in 0.045 seconds)
Similiar Articles: force prompt (PS1) on su - comp.sys.sun.adminI'm having a problem in that a few "admins" who have been given root access to some of my machines, and from whom I cannot take it away, seem to refus... SU command set to SUID or GUID - comp.unix.solarisforce prompt (PS1) on su - comp.sys.sun.admin alias in .profile - comp.unix.solaris SU command set to SUID or GUID - comp.unix.solaris Setting command aliases in ... PS1 prompt set prior to /etc/profile - comp.unix.solaris ...force prompt (PS1) on su - comp.sys.sun.admin SU command set to SUID or GUID - comp.unix.solaris Setting command aliases in ... PS1 prompt set prior to /etc/profile - comp ... Change prompt for root - comp.unix.solarisforce prompt (PS1) on su - comp.sys.sun.admin How to: Change / Setup bash custom prompt (PS1) So when executing interactively, bash displays the primary prompt PS1 when it ... [bash] Customize the prompt - comp.unix.solarisforce prompt (PS1) on su - comp.sys.sun.admin How to: Change / Setup bash custom prompt (PS1) So when executing interactively, bash displays the primary prompt PS1 when it ... su problems? - comp.unix.solarisforce prompt (PS1) on su - comp.sys.sun.admin I'm having a problem in that a few "admins" who have been given root access to some of my machines, and from whom I cannot ... Force a service into offline mode - comp.unix.solarisforce prompt (PS1) on su - comp.sys.sun.admin how to disable root passwd prompting when going into single-user ... Force a service into offline mode - comp.unix.solaris ... how can I set another user's login environment variables in a ...force prompt (PS1) on su - comp.sys.sun.admin... user (root in this case) env. on them would be a bad option because they have so many env. variables set that ... you can ... alias in .profile - comp.unix.solarisforce prompt (PS1) on su - comp.sys.sun.admin alias in .profile - comp.unix.solaris PS1 prompt set prior to /etc/profile - comp.unix.solaris ... alias in .profile - comp ... how do I check for existance of env var in bash - comp.unix ...force prompt (PS1) on su - comp.sys.sun.admin Forcing the target user (root in this case) env. on them would be a bad option because they have so many env. variables ... force prompt (PS1) on su - comp.sys.sun.admin | Computer GroupI'm having a problem in that a few "admins" who have been given root access to some of my machines, and from whom I cannot take it away, seem to refus... Bash Shell: Take Control of PS1, PS2, PS3, PS4 and PROMPT_COMMANDramesh@dev-db ~> myisamchk --silent --force --fast ... display the value of PROMPT_COMMAND in the same line as the PS1 ... when I’m logged in as me, but when I have su’d ... 7/23/2012 2:00:52 AM
|