Re: Problem with su -



On 2012/03/06 01:58, Bob Goodwin wrote:
On 06/03/12 01:09, Ed Greshko wrote:
I wonder if it is even being sourced, based on the manner
of other problems you've been reporting as of late.

The other recent problems you refer to have been common to both
computers, this one is a difference between them ... But they
are different computers. Box9 has three drives, Box6 only one
connected, etc. But I doubt those differences are the problem.

He'll have to trace it out. Normally "su" runs "/root/.bashrc" followed
by "/etc/bashrc". This strongly suggests his /root/.bashrc file has been
corrupted or his /etc/bashrc has some exotic lack of privileges. (Being
reckless with chmod can do strange things to a system.) It also means he
will not have the path setup, among other things, that he expects.

Normally "su -l" runs "/etc/profile" followed by "/root/.bash_profile"
followed by "/root/.bashrc" and lastly "/etc/bashrc". I suspect he will
see the same defect if he uses "su -" to get a login shell. It would be
worth the experiment.

Then he needs to look at the ROOT account's .bashrc file to see what has
changed. It should have this in it:

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

If it doesn't then that needs to get fixed.

{^_^}
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Relevant Pages

  • Re: "Apple has introduced a bug..."
    ... computers learned to count. ... Reporting it any other way is lying. ... While I would have preferred to had the industry use 1024, ...
    (comp.sys.mac.advocacy)
  • Re: NetworkManager-resolv.conf -
    ... computers and I use NM simply because it's there and works, ... It's better to disable networkmanager then. ... /should/ stop networkmanager from overwriting resolv.conf ... ... To unsubscribe or change subscription options: ...
    (Fedora)
  • Re: Computer Trade Show Exhibitor
    ... I'll check it in the morning, and I shall be reporting them for fraud if ... Shahid Sultan 'UK Operations Director of GlobalComm/Acorn Computers Ltd' has ... reportedly bought out Acorn Computers Ltd and is relaunching the company. ...
    (comp.sys.acorn.misc)
  • Re: Emails delivered in batches problem
    ... computers and the server? ... > Some of my customers are reporting that they have Outlook open all ...
    (microsoft.public.exchange.admin)
  • Re: Yep, names like p4p1 are soooo much better than eth0 :-(
    ... It's a hobby shop for geeks with a very narrow perspective on ... computers and how they are actually used. ... the broader Linux community including linux kernel mailing list. ... To unsubscribe or change subscription options: ...
    (Fedora)