Sponsored Content
Full Discussion: Locked out of ssh and sftp
Top Forums UNIX for Dummies Questions & Answers Locked out of ssh and sftp Post 302359228 by timgolding on Tuesday 6th of October 2009 05:16:35 AM
Old 10-06-2009
Thanks I'm trying to get a hardware firewall implemented. I found that the log gave this report moments before a crash

Quote:
[
[Time 2009.10.05 14:45:52 UTC] [Facility user] [Sender servermgrd] [PID -1] [Message servermgr_dns: no name available via DNS for 86.54.98.194] [Level 3] [UID -2] [GID -2] [Host DomainwiseWeb2]
[Time 2009.10.05 14:45:52 UTC] [Facility user] [Sender servermgrd] [PID -1] [Message servermgr_dns: no hostname set and unable to detect via DNS, services may not function properly - use changeip to repair] [Level 3] [UID -2] [GID -2] [Host DomainwiseWeb2]
[Time 2009.10.05 14:45:53 UTC] [Facility user] [Sender servermgrd] [PID -1] [Message Vsize has grown to 49M. Exiting to clear memory leak.] [Level 2] [UID -2] [GID -2] [Host DomainwiseWeb2]
[Time 2009.10.05 14:45:53 UTC] [Facility launchd] [Sender launchd] [PID -1] [Message com.apple.servermgrd: exited with exit code: 12] [Level 4] [UID -2] [GID -2] [Host DomainwiseWeb2]
[Time 2009.10.05 14:45:53 UTC] [Facility launchd] [Sender launchd] [PID -1] [Message com.apple.servermgrd: 9 more failures without living at least 60 seconds will cause job removal] [Level 4] [UID -2] [GID -2] [Host DomainwiseWeb2]
[Time 2009.10.05 14:45:53 UTC] [Facility user] [Sender servermgrd] [PID -1] [Message servermgr_dns: no name available via DNS for 86.54.98.194] [Level 3] [UID -2] [GID -2] [Host DomainwiseWeb2]
[Time 2009.10.05 14:45:53 UTC] [Facility user] [Sender servermgrd] [PID -1] [Message servermgr_dns: no hostname set and unable to detect via DNS, services may not function properly - use changeip to repair] [Level 3] [UID -2] [GID -2] [Host DomainwiseWeb2]
 

10 More Discussions You Might Find Interesting

1. AIX

SFTP Issue with ssh

Hello all, hopefuly this is the right place to post this. I am having an issue with a new sftp process on an AIX box. I created id_rsa.pub file and sent it to the person who runs the sftp process. He added the key to the authorized_Users (I only have phone contact with him and its an outside... (7 Replies)
Discussion started by: dbridle
7 Replies

2. UNIX for Advanced & Expert Users

ssh/sftp failure connection

Hello, I just want to ask regarding the meaning of the error that we got using sftp: Connecting to <TARGET SERVER IP>... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @... (3 Replies)
Discussion started by: james_falco
3 Replies

3. Shell Programming and Scripting

SSH and SFTP

remotePath=$1 fileName=$2 remoteUser=$3 remoteServer=$4 echo " if ; then echo '0'; else echo '1'; fi " > temp_command.log command1=`cat temp_command.log` ssh $remoteUser@$remoteServer $command1 rm temp_command.log Above code is to check whether the file in remote server is exist. It... (1 Reply)
Discussion started by: suigion
1 Replies

4. SuSE

SFTP with Suse 9.3 need help with Update ssh

Hi eryone, I'm new here. Since I'm a graphic designer and not an admin, I need to learn a lot from the first step, so please be patient with me. ;-) Most of my skills are self taught with howtos, so there might be some lack of wisdom in basics. I've setup a Suse-System (9.3) with a few upload... (3 Replies)
Discussion started by: rezent
3 Replies

5. Shell Programming and Scripting

Password less connection(sftp/ssh)

Dear All, I'm trying to configure a passwordless connection between two servers of HP-UX. i have srearched the configuration in google so many times and as per the guidence i have done all the steps, but still its not working and every time it is asking for password while trying to scp some file... (2 Replies)
Discussion started by: panknil
2 Replies

6. Solaris

SFTP from SSH2 to SSH

Hi, Earlier, I have configured SFTP successfully in my prev jobs. This time I have to configure SFTP for local server (uses SSH2) and remote server (uses SSH). I tried to search the forum. I did not find the right thread. I appreciate your help. The following is the additional info >... (5 Replies)
Discussion started by: bobbygsk
5 Replies

7. Solaris

SSH & SFTP Chroot

Hello all, does anybody knows a procedure to enable an chroot for users using ssh and sftp ? Thanks (1 Reply)
Discussion started by: celord
1 Replies

8. Shell Programming and Scripting

sftp ssh-keygen

sftp username@host <<EOF lcd /home/dirA cd /home/dirB mput *.txt exit EOF Hi, i have done the keygen-ssh settings but rite now I log through putty I enter my credentials and then when i successfully log in, then I issue the command ssh server name then I again enter into the server but... (1 Reply)
Discussion started by: rahulsxn660
1 Replies

9. Shell Programming and Scripting

ssh/sftp connection refused

Hi all, I logged on to a Unix server and am trying to connect a remote Windows server (Windows NT) via SSH/SFTP. However I always got the following error, sftp username@host_server (or ssh username@host_server) ssh: connect to host host_server port 22: Connection refused Any advise... (1 Reply)
Discussion started by: isaacniu
1 Replies

10. Shell Programming and Scripting

Login getting locked on sftp

Hey All, I have a ascript which sftp files from Solaris to Windows. I am usgin expect and sending password though script. I have observed that sometimes script works fine (manually or in cron) but after some run, the user I am usgin to connect is getting locked on Domain level. I am... (6 Replies)
Discussion started by: Deei
6 Replies
SETRESUID(2)						     Linux Programmer's Manual						      SETRESUID(2)

NAME
setresuid, setresgid - set real, effective and saved user or group ID SYNOPSIS
#define _GNU_SOURCE #include <unistd.h> int setresuid(uid_t ruid, uid_t euid, uid_t suid); int setresgid(gid_t rgid, gid_t egid, gid_t sgid); DESCRIPTION
setresuid() sets the real user ID, the effective user ID, and the saved set-user-ID of the calling process. Unprivileged user processes may change the real UID, effective UID, and saved set-user-ID, each to one of: the current real UID, the cur- rent effective UID or the current saved set-user-ID. Privileged processes (on Linux, those having the CAP_SETUID capability) may set the real UID, effective UID, and saved set-user-ID to arbi- trary values. If one of the arguments equals -1, the corresponding value is not changed. Regardless of what changes are made to the real UID, effective UID, and saved set-user-ID, the file system UID is always set to the same value as the (possibly new) effective UID. Completely analogously, setresgid() sets the real GID, effective GID, and saved set-group-ID of the calling process (and always modifies the file system GID to be the same as the effective GID), with the same restrictions for unprivileged processes. RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately. ERRORS
EAGAIN uid does not match the current UID and this call would bring that user ID over its RLIMIT_NPROC resource limit. EPERM The calling process is not privileged (did not have the CAP_SETUID capability) and tried to change the IDs to values that are not permitted. VERSIONS
These calls are available under Linux since Linux 2.1.44. CONFORMING TO
These calls are nonstandard; they also appear on HP-UX and some of the BSDs. NOTES
Under HP-UX and FreeBSD the prototype is found in <unistd.h>. Under Linux the prototype is provided by glibc since version 2.3.2. SEE ALSO
getresuid(2), getuid(2), setfsgid(2), setfsuid(2), setreuid(2), setuid(2), capabilities(7), credentials(7), feature_test_macros(7) COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2007-07-26 SETRESUID(2)
All times are GMT -4. The time now is 04:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy