- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- User login in Linux
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
09-02-2003 10:23 AM
09-02-2003 10:23 AM
Regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 11:47 AM
09-02-2003 11:47 AM
Re: User login in Linux
Try this boot your linux with the RH9.0, and during the installation choose something like 'system update' to update your system. after update, do the RH upgrade again with your Xwindows.
http://www.experts-exchange.com/Operating_Systems/Linux/Linux_Administration/Q_20695627.html#9062544
I would try editing the /etc/inittab to have a default run level of 3. This would allow you to make any changes and then you can try your X environment by running startx.
Hope this helps.
--dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 12:37 PM
09-02-2003 12:37 PM
Re: User login in Linux
Try to log that user on using text mode (just use Ctrl+Alt+F1). Does these messages appear?
root@wotan's password:
Last login: Mon Sep 1 17:57:46 2003
Could not chdir to home directory /rooto: No such file or directory
/usr/X11R6/bin/xauth: error in locking authority file /rooto/.Xauthority
If something like this appears, then you haven't populated your NIS database correctly. I don't have a NIS machine available now, but you can use "ypcat" commands to check up all the fields of your NIS server.
HTH
Paulo Fessel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 01:04 PM
09-02-2003 01:04 PM
Re: User login in Linux
I did define my windows correctly using the xterm command and putting it in .profile for that user. But I cannot get a desktop user login field back if I exit from this user. How do I set up a desktop for a user in Linux?
I would appreciate a url or a write up that can be pasted here.
Appreciate the help
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 01:20 PM
09-02-2003 01:20 PM
Re: User login in Linux
Could you copy the screens and attach them to this topic?
Also, as I understand your problem is not X related, but it's NIS related. For example, the NIS points to the correct home directory of the user? Can you access the home directory of this user when you log on?
Also, normally it's neccessary NFS-mount the /home from a server, which can be the NIS master server itself or another machine which is a memeber of the NIS realm that exports /home to the machines to the domain.
[]'s
Paulo Fessel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 09:00 PM
09-02-2003 09:00 PM
Re: User login in Linux
Generally you need to share via NFS /home directory on NIS server and on client machines
to enable the autofs service.
The syntax for /etc/auto.misc is the following:
* -intr,soft,rw,rsize=8192,wsize=8192 NIS server's IP or hostname:/home/&
on one line of course...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 12:18 PM
09-03-2003 12:18 PM
Re: User login in Linux
http://nfs.sourceforge.net/#section_e
I had this problem with an HP-UX machine exporting to linux as well. I fixed it with proto=tcp in the autofs auto.master and it seems to work a lot better. You will need to have a kernel that supports NFS over TCP and as far as I know it is still listed as experimental although I have used it for months.
I hope that helps,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 10:29 PM
09-03-2003 10:29 PM
Re: User login in Linux
2) does non-graphic (telnet) login work?
If no, please send us error messages you receive.
Rgds,
vitaly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2003 10:07 AM
09-04-2003 10:07 AM
Re: User login in Linux
Dan Beeler: I can't upgrade to Red Hat 9.0 now. The X environment is starting up. I get the login screen. I can switch between text and gui with Alt-Fn keys.
Paulo Fessel: I don't get that error. When I log in as a user samm, I get a window that says, "Your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix this problem" View details (~/.xsession-errors file)."
I looked at that file, it says.
"tset: standard error: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
/usr/bin/ksh: L????????[0]: tabs: not found
_X11TransSocketINETConnect: Can't get address for cyber
(gnome-session:3291): Gtk-WARNING **: cannot open display:logout"
Does this make sense? I hope you can get me some answer to what is happening..( I can access the home directory of this user as I can log on from a character terminal cntl-Alt-F1 login). The /home is automatically mounted automatically because of the entry in /etc/fstab. I have put the line there as
10.3.69.200:/home /home nfs defaults 0 0.
I don't have an automount entry. I anyway entered the auto.misc that Alexander suggested.No improvement....
Vitaly Karasik: su - username works in character mode. telnet login works fine too.
By the way I can login as root using the x environment and it shows the icons correctly. So what should I do get the other users (who are all nis users) to do the same thing. Again NIS server is HP-UX 10.2 and the clients are Linux.
Thanks for all the help.
Regards
My presumption: It is something to do with configuring the x envirornment of the user. I am not sure though.. I am novice to x environment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2003 12:22 PM
09-04-2003 12:22 PM
Re: User login in Linux
1.1) does NIS user have write permission for his homedir?
2) try to delete all .???* files from some_user homedir and try to login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2003 12:49 PM
09-04-2003 12:49 PM
Re: User login in Linux
Thanks for the help till now, but it is not yet over...,
Yes, I can do a telnet and it goes the user's home directory. Eg. /home/samm.
Yes full permission to the home directory.
I deleted the .prof* files and then logged in through character. But now through the xwindow login, it doesn't go beyond the blank screen that comes after you enter the user name. So it seems to me that it is not having the xwindows initialisation files there... Am I right? Esp. since root logs in fine there. Now as I told you I have /home on a nfs mounted directory which is on a HP-UX. So when this user logs in on a linux machine I need to load the linux x window files. How do I do that? Or do you see another problem here?.
I think we are getting there.. slowly. I think if you can guide me to set up a user (not local but NIS user) on linux considering the fact that the NIS database is on HP-UX is the clue, I guess.
Thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2003 12:56 PM
09-04-2003 12:56 PM
Re: User login in Linux
Do you have Gnome running on your HP-UX server? Do users log in directly onto that server?
Also, perhaps the data files generated by Gnome at HP-UX in a native HP-UX logon may be incompatible with those of Linux. For example, AFAIK PA-RISC is big-endian while Intel is low-endian, and thus binary files may be incompatible between versions.
Maybe it will be neccessary to check where your user is logging in your xinitrc script, and then set directories accordingly, creating one directory for HP-UX data and other for Linux data.
HTH
Paulo Fessel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2003 02:25 PM
09-04-2003 02:25 PM
Re: User login in Linux
Gnome is supposed to be running on HP Server? Because it is NIS server and Linux clients are there? That makes sense. Now how do I start that on HP-UX. I didn't ever envisage this to happen.
If you could explain to me the setting of the directories etc.. could have been very helpful.
Where do I look for xinitirc script and how it all interplay?
Well, I hope I can get some help this time..to move forward. It all makes sense
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 11:41 AM
09-05-2003 11:41 AM
Re: User login in Linux
If this happens, then it's possible that there's an .Xsession file on his/her home directory that refers actually to a X session started in HP-UX and not in Linux, and thus may not be compatible with your linux clients.
So, check if there is one (or more) of these files in user's home directory:
* .xsession
* .Xclients
* .xinitrc
* any .X* file with permissions such as 700 (minimum)
If it's the case, so you'll need to rewrite one of them to know whether you're connecting from Linux or HP-UX (an "uname -s" should take care of this). Based on this you could do a symlink to ~user/.gnome from one of two directories (e.g.: .gnome-Linux and .gnome-HP-UX) and them initiate the startup of X environment.
To be sure of this, try to rename the existing ~user/.gnome and ~user/.gnomerc files/directories. What does it happen?
(I don't use Gnome as I prefer KDE, but the way of storing local settings is pretty the same.)
HTH
Paulo Fessel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2003 12:28 AM
09-07-2003 12:28 AM
Re: User login in Linux
1) I suggest just delete ALL dot-files from user home directory
2) try to change NIS-user homedir to local dir.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 12:34 PM
09-16-2003 12:34 PM
Re: User login in Linux
HOpe to hear from you
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 01:00 PM
09-16-2003 01:00 PM
Re: User login in Linux
One the linux machine from the text terminal, login as the user, is there any error messages?
I had trouble with NIS on linux when it was served from a FreeBSD box, specifically because the linux boxes were setup to use shadow passwords and the FreeBSD box was not exporting a shadow map in addition to the regular passwd map. Another problem I ran into with this is that your linux machine will not look for the shadow map at all unless there is an 'x' in the passwd map, anything else will make the client assume that the character is the hashed passwd.
Things you may need to do on your client depending on the OS and whatnot:
- edit the nsswitch.conf so that the client looks to nis first for passwd, hosts, automount, shadow, etc
- Move your /etc/auto.* files to /etc/auto.*.old so that they do now override your NIS files ( can also be accomplished with nsswitch.conf )
- I had to add +:::::: to /etc/passwd and +::: to /etc/group for a few older slackware boxes I have kept around for testing, you may have to do the same
- Make sure that the client machine can nfs mount the directory with the options found in the nis auto.master
- Make sure that the user is in the nis passwd file, ie ypcat passwd|grep user
- do the same for the shadow map
- Make sure the user can change their password, the error can give you clues as to whats wrong.
Here are some more problems I had when I had to set this up:
- I forgot to add the client machine into the netgroup that was allowed to mount the nfs drive
- Automount would not mount over a directory that had anything in it
- The rsize, wsize had to be increased, this was just for performance though
- I had to change from soft mounts to hard mounts after reading the NFS faq
I hope that helps,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 01:11 PM
09-16-2003 01:11 PM
Re: User login in Linux
After taking another look at your post with the xsession-errors I think the problem is related to this line:
could not get address for cyber
Is cyber a machine on your network?
Check your hosts file and all of the users login files for cyber, ie.
grep -r cyber /home/
I hope that helps,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 01:51 PM
09-16-2003 01:51 PM
Re: User login in Linux
I am going to try that. Thanks for the input. At least I have different strings to try,.
I have another problem.I had logged in and opened a gnome-terminal. IN the properties, I changed it to run a command, and the command was a 'cd' command. Because of that, the terminal doesn't come up anymore. It comes up and then closes. Any way of resetting the gnome-terminal properties, so that it will open as earlier. A quick response will be appreciated.
Regards
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 07:03 AM