- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Problem with su - username / Not going to home...
Operating System - Linux
1752228
Members
5991
Online
108785
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 01:58 PM
тАО05-21-2002 01:58 PM
Hello all -
Small problem that I am stuck with.
I am currently logged in as root under /(root), I issue a su - username it logs me in with this ID but when I issue a pwd as this ID I am currently in the /(root) filesystem and not my home destination. I cannot change out of this directory /(root) (which is okay).
This is giving us problems on two accounts.
Users configured with SAM and given a different location for home directory (/home/penac/outbound/executrack).
Can anyone help?
TIA
Small problem that I am stuck with.
I am currently logged in as root under /(root), I issue a su - username it logs me in with this ID but when I issue a pwd as this ID I am currently in the /(root) filesystem and not my home destination. I cannot change out of this directory /(root) (which is okay).
This is giving us problems on two accounts.
Users configured with SAM and given a different location for home directory (/home/penac/outbound/executrack).
Can anyone help?
TIA
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 05:11 PM
тАО05-21-2002 05:11 PM
Solution
User configured with SAM?
Are you sure you're not after the HP-UX General group?
In any case, I'd start checking things like whether the user's directory does exist, and to ensure that when you are issuing 'su', you are also using the - between it and the username (ie. 'su - username'). The - indicates that it should inherit the new user's environment (ie. home dir etc.). Is kinda important.
Anyway.. just a bouncing point from a Linux guy..
Are you sure you're not after the HP-UX General group?
In any case, I'd start checking things like whether the user's directory does exist, and to ensure that when you are issuing 'su', you are also using the - between it and the username (ie. 'su - username'). The - indicates that it should inherit the new user's environment (ie. home dir etc.). Is kinda important.
Anyway.. just a bouncing point from a Linux guy..
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2002 01:20 AM
тАО05-22-2002 01:20 AM
Re: Problem with su - username / Not going to home directory
check "/etc/passwd" entry for username.
Typically for root it would look something like this:
root:x:0:0:root:/root:/bin/bash
where "/root" is home directory.
Changing that should cause "su -" or any other form of login, to place you in whatever directory you specify.
Ex:
root:x:0:0:root:/home/root:/bin/bash
Just make sure the directory you specify excists. But if not, you sould receive an error saying so.
Typically for root it would look something like this:
root:x:0:0:root:/root:/bin/bash
where "/root" is home directory.
Changing that should cause "su -" or any other form of login, to place you in whatever directory you specify.
Ex:
root:x:0:0:root:/home/root:/bin/bash
Just make sure the directory you specify excists. But if not, you sould receive an error saying so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2002 01:14 PM
тАО05-22-2002 01:14 PM
Re: Problem with su - username / Not going to home directory
Thanks Guys for responding. I did put this in the wrong section of the forums.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP