08-16-2011
Hi , Thanks zaxxon and thegeek.
Actually I did mistake during the user creation. I have solved the same
Thanks,
Mani
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I have a problem not really dramatic but realyl annoying:
i've got a groups of users who logon a sunos 2.3 box via a windows telnet client (KEAI, but this is not the problem).
they login as perso1 and password.
It takes a very very very long time to get in.
If i log on the same box... (2 Replies)
Discussion started by: penguin-friend
2 Replies
2. UNIX for Advanced & Expert Users
Guys ..
I got my user ID created in a production system of my organisation.
the problem I got is my HOME directory in environment has been mis-spelt.
Like:
I should be logging into unix using ID: freakegs
My home directory should be : /users/freakygs
and echo $HOME should also... (1 Reply)
Discussion started by: freakygs
1 Replies
3. Solaris
Hi,
I am not able to login in the system as user.It is showing problem
login as: User1
User1@10.xxx.xx.xx's password:
Could not chdir to home directory /home/User1: No such file or directory
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
$
I have created the User1 and Its... (8 Replies)
Discussion started by: smartgupta
8 Replies
4. Solaris
Hi,
I have reset the account on solaris 5.6. After resetting, User unable to login and putty gets closed once enter the password. Please suggest ASAP.....
Thanks in Advance (6 Replies)
Discussion started by: bpsunadm
6 Replies
5. UNIX for Dummies Questions & Answers
I logged in through ssh, but can't re-login as root.
sudo login
Arch login: root
Password:
Login incorrect
Arch login:
But I am sure my password is right. Why?
But on local tty1, this works. (2 Replies)
Discussion started by: vistastar
2 Replies
6. Solaris
Hello,
I'm trying to setup my Solaris 10 servers to authenticate from a OpenLDAP server. I can get the Linux servers to authenticate from a OpenLDAP server, but not server the Solaris servers. Below I have posted some output so you can see my issue.
<terminal output>
-bash-3.00$ id... (5 Replies)
Discussion started by: bitlord
5 Replies
7. Emergency UNIX and Linux Support
Hi All,
I am facing issue in setting up passwordless login through ssh on two Solaris-10 boxes. user-id ravrwa from server tsapiq04-zrwdq01 should be able to login to server tsbrit03 as cpsuserq, which is not happening. I am not sure where is the problem, while keys are already all set. Here is... (14 Replies)
Discussion started by: solaris_1977
14 Replies
8. Shell Programming and Scripting
Hello,
I'm trying to build a script which logins to an application and logout, where the user would input URL, credentials, no. of users, iterations etc. The objective is to test max no. of sessions our reverse proxy apache can handle.
I'm trying to handle the application login and logout... (1 Reply)
Discussion started by: pdilipm
1 Replies
9. Red Hat
Dear all,
When ever i login to linux box through putty , it is taking a long time to log in .....approx 2 min
Kindly let me know any reason behind this.... (3 Replies)
Discussion started by: jegaraman
3 Replies
10. Red Hat
Dear All ,
recently i have configured sftp for a user for which i have done chroot.
but after this , sftp is working fine . but ssh is not working when we connect to the server.
When we try to ssh <user>@<server ip> , the below is the error message that we get and not able to login.
... (2 Replies)
Discussion started by: jegaraman
2 Replies
LEARN ABOUT OPENDARWIN
setlogin
GETLOGIN(2) BSD System Calls Manual GETLOGIN(2)
NAME
getlogin, setlogin -- get/set login name
SYNOPSIS
#include <unistd.h>
char *
getlogin(void);
int
setlogin(const char *name);
DESCRIPTION
The getlogin() routine returns the login name of the user associated with the current session, as previously set by setlogin(). The name is
normally associated with a login shell at the time a session is created, and is inherited by all processes descended from the login shell.
(This is true even if some of those processes assume another user ID, for example when su(1) is used.)
Setlogin() sets the login name of the user associated with the current session to name. This call is restricted to the super-user, and is
normally used only when a new session is being created on behalf of the named user (for example, at login time, or when a remote shell is
invoked).
RETURN VALUES
If a call to getlogin() succeeds, it returns a pointer to a null-terminated string in a static buffer. If the name has not been set, it
returns NULL. If a call to setlogin() succeeds, a value of 0 is returned. If setlogin() fails, a value of -1 is returned and an error code
is placed in the global location errno.
ERRORS
The following errors may be returned by these calls:
[EFAULT] The name parameter gave an invalid address.
[EINVAL] The name parameter pointed to a string that was too long. Login names are limited to MAXLOGNAME (from <sys/param.h>)
characters, currently 12.
[EPERM] The caller tried to set the login name and was not the super-user.
SEE ALSO
setsid(2)
BUGS
Login names are limited in length by setlogin(). However, lower limits are placed on login names elsewhere in the system (UT_NAMESIZE in
<utmp.h>).
In earlier versions of the system, getlogin() failed unless the process was associated with a login terminal. The current implementation
(using setlogin()) allows getlogin to succeed even when the process has no controlling terminal. In earlier versions of the system, the
value returned by getlogin() could not be trusted without checking the user ID. Portable programs should probably still make this check.
HISTORY
The getlogin() function first appeared in 4.4BSD.
4.2 Berkeley Distribution June 9, 1993 4.2 Berkeley Distribution