- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: ss -u not putting me in my /home/ directory.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
07-06-2006 02:21 AM
07-06-2006 02:21 AM
ss -u not putting me in my /home/ directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 03:32 AM
07-06-2006 03:32 AM
Re: ss -u not putting me in my /home/ directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 04:11 AM
07-06-2006 04:11 AM
Re: ss -u not putting me in my /home/ directory.
I bet 'ss' is an alias for 'sudo su'. Try this:
$ ss -u
or
$ sudo -u
The '-' makes the shell a login shell, which causes the user's startup scripts to be executed.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 05:34 AM
07-06-2006 05:34 AM
Re: ss -u not putting me in my /home/ directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 05:38 AM
07-06-2006 05:38 AM
Re: ss -u not putting me in my /home/ directory.
Check out what's new in sudoscript 2.1.2:
http://sourceforge.net/project/shownotes.php?release_id=284854&group_id=50616
New Option to sudoshell
=======================
The"-" option has been added to ss/sudoshell. This sets the $HOME
environment variable to that of the user ss will become. This causes
the shall (bash, at least) to load the target user's environment instead
of the calling user's.
Seems like what you need.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 07:01 AM
07-06-2006 07:01 AM
Re: ss -u not putting me in my /home/ directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 07:48 AM
07-06-2006 07:48 AM
Re: ss -u not putting me in my /home/ directory.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 08:02 AM
07-06-2006 08:02 AM
Re: ss -u not putting me in my /home/ directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2006 07:23 AM
07-07-2006 07:23 AM
Re: ss -u not putting me in my /home/ directory.
From user wasadmin, shouldn't I be able to "ss -u was_fps" and end up in was_fps' home directory?????? Any help would be greatly appreciated.
************************************
sudoers:
root ALL=(ALL) ALL
wasadmin rhel002=(was_fps) NOPASSWD: /usr/bin/ss -u was_fps
************************************
/etc/passwd:
wasadmin:x:200:200::/wasadmin:/bin/bash
was_fps:x:201:201::/wasadmin/was_fps:/bin/bash
************************************
/etc/group:
wasadmin:x:200:was_fps
was_fps:x:201:
ssers:x:97:wasadmin,was_fps
sslogin:x:500:wasadmin,was_fps