09-20-2016
are you logging auth messages via to syslog? What message do you see there on auth failure?
10 More Discussions You Might Find Interesting
1. HP-UX
HI,
We are facing a problem while trying to login using ssh.
The user is able to login using telnet.
We are able to login as another user using ssh and then su to that user which is successfull.
What should i be checking for the user to be able to login directly using ssh.
Thanks in... (2 Replies)
Discussion started by: sag71155
2 Replies
2. Shell Programming and Scripting
I want to login to server using ssh or telnet and execute one command then exit to the shell
Please let me know how to write script for this? (1 Reply)
Discussion started by: svenkatareddy
1 Replies
3. UNIX for Dummies Questions & Answers
1)
ssh a@b
echo $USER it display the correct value as a (even though i have not defined it in .profile)
2)
remsh b -l a
echo $USER it does not display the value as a (variable is not set
any idea why $USER variable is not initialized when i login via remsh or rlogin but shows the... (10 Replies)
Discussion started by: reldb
10 Replies
4. Shell Programming and Scripting
Hey guys,
I have some task from my office to lock user on the specified directory after the user logged on using ssh. And then run prompt program to fill the required information. Yeah, just like an ATM system.
My question:
How could I do those?? AFAIK I have to edit the ~./bashrc. But the... (1 Reply)
Discussion started by: franzramadhan
1 Replies
5. HP-UX
Hi,
I want to suppress ssh login logs of a particular user to get logged in /var/adm/syslog/syslog.log
As am using a user to monitor a server over ssh in 5 miute interval..and that creating un-necessary logs in my syslog.log file .. Please help me if there any way I can suppress this logs only... (6 Replies)
Discussion started by: Shirishlnx
6 Replies
6. Shell Programming and Scripting
This is a weird problem. Following is my code.
/opt/quest/bin/vastool configure pam sshd
/opt/quest/bin/vastool configure pam ssh
cat /etc/pam.conf | \
awk '$1=="ssh"||$1=="sshd"||$1=="emagent"{sub("prohibit","aix",$NF);}1' OFS='\t' > /etc/pam.conf
cat /etc/ssh/sshd_config | \
sed -e... (2 Replies)
Discussion started by: pjeedu2247
2 Replies
7. Red Hat
I have been asked to see if we can restrict SFTP access to authorised users only. There will be business users who will log on with SSH, but they are locked into a menu. They will have write access to the production data to do their job, but we don't want them to have access to read/write the... (8 Replies)
Discussion started by: rbatte1
8 Replies
8. Solaris
HI Community.
I was trying to create ssh password less authentication for one user called night and it's not working for me.
These are the steps I followed:-
I have logged into the server and issued ssh-ketgen -t rsabash-3.2$ ssh-keygen -t rsa
Generating public/private rsa key pair.... (4 Replies)
Discussion started by: bentech4u
4 Replies
9. UNIX for Advanced & Expert Users
Hello Gurus,
I want One user to su to another without allowing root access and password.
I want to run a specific command as below from user am663:
---------------------------------------------------------
sudo -u appsprj4 /home/appsrj4/scripts/start_apache.sh
-------------------
But... (6 Replies)
Discussion started by: pokhraj_d
6 Replies
10. UNIX for Advanced & Expert Users
I have a user account configuration with ssh public/private key that works on multiple servers centos and rhel. One server (Server F) that is not working in centos 6.8. When i ssh into server f I get prompted for a password. I have verified the config and it all is good. I put sshd into debug... (8 Replies)
Discussion started by: bash_in_my_head
8 Replies
LEARN ABOUT ULTRIX
setauthent
getauthuid(3x) getauthuid(3x)
Name
getauthuid, getauthent, storeauthent, setauthent, setauthfile, endauthent - get/set auth entry
Syntax
#include <sys/types.h>
#include <auth.h>
AUTHORIZATION *getauthuid(uid)
uid_t uid;
AUTHORIZATION *getauthent()
int storeauthent(auth)
AUTHORIZATION *auth;
void setauthent()
void setauthfile(pathname)
char *pathname;
int endauthent()
Description
The function looks up the auth entry for the specified user ID and returns a pointer to a static area containing it.
The function retrieves the next sequential entry from the auth database and returns a pointer to a static area containing it.
The function stores the specified auth entry into the local auth database, overwriting any existing entry with the same a_uid field.
The function sets a pointer to the beginning of the auth database. This function is used with to make multiple passes through the auth
database.
The function sets the pathname of the file to be used for the local auth database in all subsequent operations.
The function closes the auth database. Subsequent calls to getauthuid, getauthent, or storeauthent reopen it.
The auth database can be distributed via the BIND/Hesiod naming service.
Restrictions
Only the superuser and members of the group authread may read information from the auth database.
Only the superuser may modify the auth database.
The auth database cannot be distributed via the Yellow Pages service.
When the auth database may be served by BIND/Hesiod, a separate Kerberos initialization is necessary prior to using any of the functions.
The values returned by and point to a static area which is overwritten when subsequent calls are made.
Return Values
Functions which return a pointer value return the null pointer(0) on EOF or error. Other functions return zero(0) on success and a nega-
tive value on failure.
Files
See Also
getpwent(3), auth(5), edauth(8)
%%DNSecUsers%%
%%DNSecAdmin%%
%%DNBIND/Hes%%
getauthuid(3x)