Re: Problem with su -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux