9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
I need to transfer a file from a UNIX server to a windows server.
I saw that it is possible to do this using scp command by looking at the forum listed below:
... (2 Replies)
Discussion started by: vx04
2 Replies
2. UNIX for Dummies Questions & Answers
(1 Reply)
Discussion started by: senrabdet
1 Replies
3. Solaris
Hi,
If i changed my password then i can able to enter into linux box. After some time if i tried then i can not able to enter into the same box.
I have tried lot of times, But it is not resolved yet.
I got below error message
Error Message : Timeout before authentication for... (4 Replies)
Discussion started by: Mani_apr08
4 Replies
4. Solaris
Hi, I need some help regarding login issue. I have to use 8 server. The username is same at all. But when i was trying to access for particular 4 server. I got access denied error. Please help ....
Note: If i change my password by using root user. then I can able to enter into the same server.... (6 Replies)
Discussion started by: Mani_apr08
6 Replies
5. Solaris
Hello everyone,
This is the first time I am installing Solaris. I have SunBlade 1500 Wrkstn. I installed Solaris 10 Sparc.
The installation went successfully but I don't get the login screen. I get the following error message:
Boot device: disk:a File and agrs:-
Data Access Error
Ok
... (4 Replies)
Discussion started by: mfsaeed
4 Replies
6. UNIX for Dummies Questions & Answers
hi all,
i want to know y kernel is giving access for multiple users to access a file when one user may be the owner is executing that file. Because other user can manipulate that file when the other user is executing that file, it will give the unexpected result to owner . plz help me... (1 Reply)
Discussion started by: jimmyuk
1 Replies
7. UNIX and Linux Applications
Hi ,
I am new user.
As you know when acl is defined in /etc/squid/squid.conf file according to its http_access users are able to access internet.
Before that .htaccess asks them to access internet.
It is fine.
I saw in some customised linux servers in place of .htaccess login ,html web page... (1 Reply)
Discussion started by: sandeepvson
1 Replies
8. Windows & DOS: Issues & Discussions
Hi,
Is there a way to authorise Internet Access through the authentication of user login information without using any firewall?
example :
PC A is internet access ready with all the necessary settings in place (DNS and Gateway, no proxy settings as our company uses transparency proxy).
... (0 Replies)
Discussion started by: jennifer
0 Replies
9. UNIX for Dummies Questions & Answers
Hi
I need to access files from a specific folder of a Linux system from an another Linux System Remotely.
I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility.
Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies
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