- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: when ogin into user its going to root director...
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
08-02-2007 11:04 PM
08-02-2007 11:04 PM
when ogin into user its going to root directory
Thnak you,
Ramana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 11:11 PM
08-02-2007 11:11 PM
Re: when ogin into user its going to root directory
If it's missing create dir and change to desired value with usermod or vipw.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 11:13 PM
08-02-2007 11:13 PM
Re: when ogin into user its going to root directory
It could be a permission problem with /home or /home/ramana or an error in /etc/passwd for user ramana. Do you want to post:
ls -ld /home
ls -ld /home/ramana
grep ramana /etc/passwd
Ed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 11:21 PM
08-02-2007 11:21 PM
Re: when ogin into user its going to root directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 11:28 PM
08-02-2007 11:28 PM
Re: when ogin into user its going to root directory
#grep "Ramana" /etc/passwd
Ramana:RMME3ZGeVQz2c:112:200:,,,:/home/Ramana:/usr/bin/sh
If the passwd entry contains an invalid or non-existent home directory then the login process will be unable to send them to the desired directory and they will end up in / instead.
Is that clear enough?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 11:39 PM
08-02-2007 11:39 PM
Re: when ogin into user its going to root directory
Can you explain the process how you have created the user, I think there is some issue in creating user itself.
Sol:
create a directory mkdir /home/Ramana
then vi /etc/passwd and change the home dir field to /home/Ramana.
chown Ramana:users(group)/home/Ramana
it will do the things you need.
command to add user should be
useradd -c "Ramana Sv" -d /home/Ramana -m Ramana
Regards,
Awadhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 11:44 PM
08-02-2007 11:44 PM
Re: when ogin into user its going to root directory
cd without a directory name should take you to the home directory. Log in as Ramana, type cd, and report the result.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 12:11 AM
08-03-2007 12:11 AM
Re: when ogin into user its going to root directory
Right, or the automounter went belly up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 12:44 AM
08-03-2007 12:44 AM
Re: when ogin into user its going to root directory
India # grep murali /etc/passwd
murali:hlXNS4glU9nn6:104:20::/home/murali:/sbin/sh
please help me sir how to do this one
pease tell me the comand
bassical i used command to create user is
adduser ramana
passwd ramana
that's it only.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 12:54 AM
08-03-2007 12:54 AM
Re: when ogin into user its going to root directory
murali:hlXNS4glU9nn6:104:20::/home/murali:/sbin/sh
The first field is the user name, murali. The second field is the password hash, hlXNS4glU9nn6. Then we have the uid and gid. The "gecos" fields are blank. Then we have the home directory, /home/murali, and finally the login shell.
What does
ll -d /home/murali
show?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 12:54 AM
08-03-2007 12:54 AM
Re: when ogin into user its going to root directory
# cd /home/murali
does this directory exist ?
# mkdir /home/murali
# chown murali:20 murali /home/murali
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 12:58 AM
08-03-2007 12:58 AM
Re: when ogin into user its going to root directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:01 AM
08-03-2007 01:01 AM
Re: when ogin into user its going to root directory
just make it:
mkdir /home/ramana
then copy .login, .profile from say another user into that directory and then:
chown -R ramana:users /home/ramana
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:02 AM
08-03-2007 01:02 AM
Re: when ogin into user its going to root directory
it giving the like this follwing.
drwxrwxr-x 2 murali users 96 Aug 3 18:27 /home/murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:05 AM
08-03-2007 01:05 AM
Re: when ogin into user its going to root directory
# cd /home/murali
# df -k .
please post the ouput from the df -k . command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:16 AM
08-03-2007 01:16 AM
Re: when ogin into user its going to root directory
murali:hlXNS4glU9nn6:104:20::/home/murali:/sbin/sh
I thought only root user should be using /sbin/sh.
Normal users I thought are all supposed to use /usr/bin/sh
For the heck of it when you log in as your user what does $echo $SHELL show?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:23 AM
08-03-2007 01:23 AM
Re: when ogin into user its going to root directory
That's true that normal users ought to be using /usr/bin/sh, but /sbin/sh will work without causing any problems.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:26 AM
08-03-2007 01:26 AM
Re: when ogin into user its going to root directory
I should of tested it prior.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:31 AM
08-03-2007 01:31 AM
Re: when ogin into user its going to root directory
"/tmp/SEDC/murali_4834/Ex07425" Permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:35 AM
08-03-2007 01:35 AM
Re: when ogin into user its going to root directory
ll /tmp/SEDC/murali_4834/Ex07425
bdf /tmp is tmp full?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:38 AM
08-03-2007 01:38 AM
Re: when ogin into user its going to root directory
/dev/vg00/lvol6 5242880 979056 3997339 20% /tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 03:24 AM
08-03-2007 03:24 AM
Re: when ogin into user its going to root directory
I'm wondering by the other how to change HOME thread something didn't get messed up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 02:38 PM
08-03-2007 02:38 PM
Re: when ogin into user its going to root directory
"/tmp/SEDC/murali_4834/Ex07425" Permission denied
What was the command you used?
>Dave: what are the permissons on the file?
/tmp/SEDC/murali_4834/Ex07425
Right.
This error can occur if TMPDIR isn't set correctly:
$ mkdir -p /tmp/SEDC/murali_4834
$ chmod a-x /tmp/SEDC/murali_4834
$ TMPDIR=/tmp/SEDC/murali_4834 vi himom.C
"/tmp/SEDC/murali_4834/Ex25745" Permission denied
So make sure TMPDIR is something like just /var/tmp. Or if you really have your heart set on /tmp/SEDC/murali_4834/, make sure you have execute permission on the directory paths.
You may have something like:
export TMPDIR=/tmp/SEDC/$LOGNAME_$$ ??