0
votes
0answers
63 views

Disable interactive login on tty in Centos/Fedora and/or Ubuntu (Press <Enter> to login)

I am aware of the potential security implications of doing this - that's not a concern at the moment. It's for a simple proof of concept where access to the console (via VNC) is locked down and on ...
4
votes
7answers
987 views

will hosting provider have access to my dedicated server?

I am looking to buy a dedicated server for my web application.But I am concerned about security to my application code and who can access to my server even dedicated server.As hosting provider ...
0
votes
1answer
50 views

Linux Monthly Login Report

Is there a command to find out if anyone logged into a machine as one of the System IDs (bin, sshd, rpc, etc)? I've tried last, faillog, ausearch and aureport (this has worked the best), but I'd like ...
0
votes
2answers
137 views

Limit logons per user account in linux.

The current situation is that all users have local configured telnet connections to a red hat server running a simple telnet daemon. I would like to consolidate those locally configured telnet ...
1
vote
3answers
119 views

Disable Password Authentication for Remote Users Only

I've read how it is possible to disable password authentication on an Ubuntu server. However, is it possible to disable this for remote users only? I'm afraid that, if I enable this both locally and ...
2
votes
1answer
124 views

SSH login: automatically goto last directory visited?

During my multitasking days, sometimes I will be booted off of an SSH session for one reason or another (idle timeouts, etc), while I am working on another task. When I return to the terminal, I will ...
1
vote
2answers
316 views

What do these entries in my SSH logs mean? [duplicate]

I recently noticed that I have entries from an unknown IP address in my SSH logs. I performed a grep to extract all entires that didn't contain my own IP address. I was presented with this: Jul 24 ...
1
vote
1answer
86 views

Agetty terminating during login on serial connection

I'm trying to login to a server through the serial port using agetty. When I start agetty and open the serial connection, I see the login prompt but as soon as I enter the username (in my case root), ...
1
vote
2answers
384 views

Ubuntu server closing connection after successful login

I am unable to logon to my Ubuntu (12.04 LTS) server via WinSCP or sftp. There was previously a permission problem for ssh_host_* files in /etc/ssh. This was after I tried chmod -R from another ...
1
vote
0answers
159 views

ssh login attempts fail randomly - but work otherwise for same user

I'm having strange ssh login issues, where the login for a user does work in general, but sometimes it doesn't. here's a failed login attempt: Mar 28 14:49:55 hostname sshd[32247]: Invalid user ...
0
votes
0answers
77 views

Samba password not persisting

I have a samba on debian setup with the following smb.conf [global] workgroup = WORKGROUP # Debug logging information log level = 2 max log size = 50 debug timestamp = yes ...
5
votes
3answers
698 views

Running a shell script for certain user who logs in with SSH

First time here and posting just because I can't seem to find the answer to this, or whether is this even possible. The problem I'm having is that I want to create a script that will be run ...
1
vote
2answers
984 views

How do I list the N last successful and unsuccessful login attempts for my user when I log in with e.g. ssh on Linux?

This seems like such a basic security feature I'm surprised it's not already standard.
1
vote
1answer
97 views

Can't login anymore via sshd

I have been working with SSH for a long time, but recently I have needed to add another user to my set up. I followed some instructions I found on the web and did the folllowing. adduser sam sudo ...
3
votes
3answers
226 views

Why do I have more users logged on than there are?

On an old GNU/Linux Ubuntu box I see something like lorenzo@metropolis:~ $ w 09:58:18 up 651 days, 19:30, 5 users, load average: 0.28, 0.30, 0.24 The problem is, I am logged on other three ...
1
vote
1answer
123 views

No space left on device prevents login

It seems that when you run out of disk space all remote logins are prevented [I'm using Red Hat 4.4]. Apparently this is because all non-superuser logins have to write to /var/log/auth.log This is a ...
16
votes
14answers
1k views

Reasons for missing IP info in `last` output on pts logins?

I have five CentOS 6 linux systems at work, and encountered a rather strange issue that only seems to happen with my userid across all the linux systems I have... This is an example of the problem ...
4
votes
2answers
1k views

Disabling the shell of user “daemon” (/bin/false)

on a Linux system there are lot's of users by default: daemon, bin, sys, games, etc. According to my /etc/passwd most of these users have a shell assigned (/bin/sh) which seems some kind of insecure ...
1
vote
2answers
3k views

CentOS 5.8 - Can't login to tty1 as root after updates?

I've ran a yum update on my CentOS 5.8 box and now I am unable to log into the console as root. Basically what happens is I receive the login prompt, enter the correct username and password, and am ...
0
votes
2answers
3k views

What service reads /etc/security/access.conf?

I'm trying to get to the bottom of an issue with a non-root user running a cron job and I've stumbled upon /etc/security/access.conf. I have a couple of questions: What service reads this file? Do ...
1
vote
1answer
261 views

a command that tells if a username/password combination is a valid user

I'm writing a bash script, and I need to validate when a user enters their unix username and password, that it's the same username and password they use to login. I was thinking of calling login, but ...
6
votes
4answers
19k views

Linux closing connection after successful login

I am working on a server with Debian 5.2.2. Barely having any administrative knowledge with Linux, I think I screwed something up. I used apt-get update and apt-get upgrade to get everything up to ...
3
votes
2answers
125 views

How to override the login process of Gnome/KDE?

I would like to override the login process of my computer such that it could be logged in by a Bluetooth hardware security token instead of the typing username and password. What would I need to do ...
1
vote
3answers
578 views

Why cannot login in to the server via SSH?

The network connection is OK as I can ping that server. However, I cannot SSH to it by any user. The output as follows, Auth User/Pass with PS...fail...Please reconnect!. Connection to xxx closed. ...
1
vote
1answer
274 views

How to debug ~/dotfiles causing gdm login to gnome 3 to fail

I recently had a problem with my Fedora Core 15 linux machine where something in my dotfiles got corrupted and caused a freeze on login from gdm such that the box would never get to the desktop. I've ...
1
vote
2answers
238 views

Kerberos LDAP and Ubuntu Login

I setup Kerberos and LDAP for directory management at an institution for Ubuntu OS. I got LDAP configured correctly and Kerberos. The user's home directory is in an LDAP directory. When the user ...
1
vote
1answer
260 views

What is a reasonable number of users who can connect to a server at the same time? [closed]

I have a server which allows only 2 connection at the same time. This can be a pain as you can't login if you are third. In another instance (if I remember correctly), the maximum allowed was 5 users. ...
50
votes
3answers
37k views

how to disable SSH login with password for some users?

On Linux (Debian Squeeze) I would like to disable SSH login using password to some users (selected group or all users except root). But I do not want to disable login using certificate for them. ...
3
votes
3answers
859 views

On Linux, is it possible to do a one-off login as another user, overriding their default shell?

As root I would like to login as a service user (jenkins - the CI server) and manipulate files with its user,group and umask settings. Normally I would (as root) do sudo -i -u jenkins, or even su - ...
2
votes
5answers
2k views

How to log commands/logins in linux?

I'm feeling that some people are using the root, how i can log all commands and connections times including ips made to the server (ssh) from all users? history command is not enough
0
votes
5answers
204 views

Ideas for campus Internet Login mechanism?

I work at this university and I'm seeking an effective solution for an internet login mechanism. We have a leased-link at our campus, which is shared by both staff & students. All systems ...
0
votes
4answers
3k views

Why are my log in times taking so long in Linux?

In recent weeks, login times on my Ubuntu server have started timing out; both through SSH and the local command line console. Examination of the /var/log/auth.log files yields nothing interesting. ...
1
vote
2answers
3k views

How does one determine active SSH and SAMBA connection counts?

I have a server that I use infrequently, so I'd like to cron a job to shutdown daily if no users are logged in via SSH and SAMBA shares. How can I determine how many active SSH connections there are, ...
0
votes
1answer
201 views

Telnet disconnected on login failure

I have two servers running Linux 2.6.9 kernel. When i telnet to server1 , the telnet will be disconnected only after 3 login failures. While, when i telnet to server2, telnet will be disconnected ...
0
votes
2answers
67 views

Probelm After Changing password in ubuntu

I am using ubuntu system which uses openldap for user login authentication. For changing my login password i used "$sudo passwd" and changed it. (of course the password given is same as old one). ...
0
votes
1answer
314 views

Linux auth to wireless before LDAP/AD logon?

Is it possible, on a linux machine configured for AD or LDAP logon, when the user logs on, to use that username and password to connect to a WPA enterprise wifi connection, which would then allow the ...
1
vote
2answers
204 views

Triggering GDM login on a remote machine

I have to briefly describe the situation. We are planning to make a computer classroom with workstations running Ubuntu 10.04. Since making accounts for each student has not been considered ...
0
votes
5answers
455 views

How can I login on all linux terminals at once?

I always use more than one terminal, but always have to type login information in each one before using. How can I specify in inittab to only prompt for login info in tty1, and after successiful login ...
0
votes
1answer
228 views

Not able to login as a root in mysql from localhost through commandline

I am running MySQL 5.0.75-0ubuntu10.5 on Ubuntu 9.04 Jaunty. When I try to login as a root to MySQL # mysql -u root -h localhost -padmin I get following error ERROR 2002 (HY000): Can't connect to ...
1
vote
1answer
2k views

Autologin on Ubuntu Server

I have a machine running Ubuntu Server. It has only a command-line interface. How can I make the system login with a specific user automatically (I don't want to type the username/password). I know ...
28
votes
11answers
22k views

Linux: how to prevent a user from login in, but allow “su - user”

How do you allow a user to log in using "su - user" but prevent the user from login in using SSH? I tried to set the shell to /bin/false but the when I try to su it doesn't work. Are there several ...
8
votes
4answers
657 views

Remote Root Login

I know one of the first things you do to secure a server is disallowing remote root login. Passwords are pretty weak; what do people think of only allowing root login via ssh keys or other ...
4
votes
1answer
395 views

Is NFS + NIS a modern good practice for Linux networks to achieve common logins and home directories?

I'm setting up a smallish network of Centos servers (less than 10) and I'd like to have common logins on all of them as well as network mapped home directories. I used to work with Solaris quite a ...
0
votes
1answer
2k views

Configure Fail2ban to ignore local (NAT) IPs

How can I configure fail2ban to always allow attempts from the local/NAT ips (ie 192.168.1.*). I have tried putting the following entry into /etc/fail2ban/jail.conf: [DEFAULT] # "ignoreip" can be ...
2
votes
2answers
129 views

How I can find out why a user can't connect to Ubuntu Linux?

We're using SSH with public key authentication. The user can connect from one machine, but not from another machine on a different network. He was previously able to connect. When we run ssh with ...
0
votes
4answers
775 views

Isn't /etc/profile supposed to be sourced at least once under a graphical linux environment?

Using Gentoo and KDE 4, opening Konsole or xterm doesn't provide defined stuff in /etc/profile. This file is normally sourced by a login shell, but what can be considered as a login shell in a ...
3
votes
2answers
104 views

What do I need to know when creating a non-shell command for a user's login?

I am working on software and configuration for a device that uses Linux. I have been asked to provide an administrative interface that requires no knowledge of Linux to use and that has restricted ...
8
votes
2answers
4k views

How to find who was logged in before beginning of wtmp

I'm trying to determine who was recently logged into a specific machine in my office. So I used last, but wtmp begins yesterday (Monday) around 14:30. I was hoping to find info stretching back to ...
3
votes
1answer
981 views

Limit concurrent logins to multiple desktops on LDAP Linux network?

How can I limit the number of desktop machines, within a private, all-Linux LDAP-authenticated network, that a single user account is logged in to at one time? Here is the scenario to prevent: A user ...
2
votes
5answers
586 views

Linux: How do I disable any kinds of remote control for a certain user?

How do I disable any kinds of remote control (SSH, X, NFS, SMB, ... what else?) for a certain user? Or, asked the other way round: How do I disable remote control for all users except a certain one? ...