Security :: Custom Login Script For *shared Account* (using SSH)?
Mar 2, 2011
There is a shared account (not by choice, and not my choice). I ssh into it, along with many other users.Some users share the password, others use the public key method (each user has their own pair of keys).I have a number of shell preferences that I would not want to affect other users. So changing .bashrc, .profile, .kshrc, etc types of scripts in the shared account is not practical, because changing them would affect everyone. What would be a practical way to have a script execute automatically, only when logging in by way of my private (id_rsa) key? Could I perhaps change the .profile in a way that it runs some commands only if my public key was used to authenticate the login?I've considered this:ssh sharedUser@host 'bash -s' < my_local_script.shbut it simply terminates when done. I want it to hand the shell over to me.Also, when many users are logged in, the "w" command shows several users with the same shared username. Is there anything I can do to make my own session distinct? E.g. instead of showing username "sharedUser",
View 3 Replies
ADVERTISEMENT
Feb 8, 2011
I have set samba shared folders on my ubuntu 10.04, which Windows users on my network use. The problem is, even that I leave the computer on, they cannot access the shared folders until I login with my account to the computer.This is a real problem since I either need to come to the office, login with NX or tell them the password which I don't want to do
View 5 Replies
View Related
Sep 25, 2009
I am a new Linux user and have a question about the administrative authentication. When I am logged in as a user and I need to do something that requires root privileges the little password window comes up and I enter the root password. My question is how long are the root privileges granted for?I noticed that a few minutes after finishing checking out the firewall configuration tool and closing the window that I was still able to re-enter the fire wall tool and other administrative tools. How do I log out of the root privileges without logging out and then back into my account?
View 2 Replies
View Related
May 25, 2010
I'm trying to lock an account after a number of failed login attempts in a RHEL5.
This is the relevant configuration in /etc/pam.d/system-auth
In the logs I can see how the count of failed logins increase and exceeds my deny option but the account isn't locked
Do I need any other option in the PAM file? Is there any other way to lock an account?
View 5 Replies
View Related
May 13, 2010
So I'm holding my nose and gonna get a shared hosting account. Sorry to sound a snob, maybe I am and tx God there are some of us left! Fact is, I'm a VPS kinda guy but need a shared host for a tech book I'm commissioned to write.
I was with Lunarpages a while off. Thought they were pretty good 'till they lost my db. Not an option. HostGator? Or who? I want cheap as chips. And that's about it. I'll only really be playing with cPanel .. aah, so I need that too. But it would be nice to have some sort of reliability, and I need one of the 'big boys' 'cos many of the target audience for this tome will have that kind of host.
View 1 Replies
View Related
Jan 27, 2010
I just installed Fedora 12 on a laptop. I changed the default shell on the root account to /bin/tcsh and changed the runlevel to 3 and then rebooted. Now I can't login into the root account: it returns me immediately to the login prompt and I can't see any error message (the screen is cleared).Why is this happening?Can I boot into some sort of safe mode so I can undo my changes to the /etc/inittab and /etc/passwd file?I tried booting with a Live CD with the intention of mounting the filesystem and making the changes, but the new filesystem is a LVM and it won't let me mount it (or I don't know how to mount a Logical Volume).
View 3 Replies
View Related
Feb 6, 2010
I run a network with about twenty Debian systems, currently running Etch. I maintain a central passwd and group file, which is regularly copied to each system. This works fairly well, but I have some problems with the system account UIDs and GIDs.
I find different systems often pick different UID and GID values for system accounts like bind, ntp, sshd etc. I think the values chosen at install come from the system UID and GID ranges, and are allocated sequentially, so the values on a system depend on which packages were installed, and the order they were installed in.
Is there any way to specify the UID and GIDs for system accounts at installation time? Are there any other thoughts on how to implement shared passwd and group files (apart from NIS, which I don't want to use)?
View 1 Replies
View Related
Nov 23, 2015
My dns/firewall Debian7 server (no GUI) was installed with a LDAP client.This client is now useless as no user needs to connect to that machine, so I changed PAM configuration to remove LDAP users from local users.The problem is that I can't login anymore as root or as administration user.The password is unchanged and when I try to login with it it gaves no error, but go back instantly to "login :"On the other hand, when I try a wrong password, it react as it should with an authentication failure.That's why I don't think it's a password issue.
The server still works as far as I can say no service was impacted, I just can't login anymore (and that will be an issue when it comes to some upgrade or administration...).
View 2 Replies
View Related
Apr 22, 2011
i cant login into my account.earlier im able to login but now i cant.it error
Error connecting to IMAP server: localhost.
111 : Connection refused
View 2 Replies
View Related
Mar 31, 2010
here is the what i ran:
Code:
lastb | awk '{print $1}' | sort | uniq -c | sort -rn | head -5
5 fauz
1 btmp
1
what the bottom account is. no name?
View 2 Replies
View Related
Apr 30, 2010
After installing the newest ubuntu, 10.4, i have noticed that I cannot set a custom login screen like i could in previous versions. Is there a work around for this?
View 9 Replies
View Related
Jul 24, 2010
I would like to run a few custom commands when booting: "xinput" to calibrate the touchscreen and a couple of "setkeycodes" to make special buttons responsive.
From within a session I need to do "sudo setkeycodes [etc]" - without root access there's a "couldn't get a file descriptor referring to the console" error message.
Ideally these commands would already be operational at the login screen, and without requiring entering a root password every time.
I've put the commands in an otherwise empty /etc/rc.local but this does nothing. Other posts mention bootscript.sh but I don't get how this is used; and the best way to do this seems to have changed between versions - so what's the proper Lucid way?
View 3 Replies
View Related
Dec 23, 2010
I used sudo mv and Ubuntu tweak to customize my login screen -end result: a white login screen with a flashing rctangle in the middle - where I click my username.I cant login, which sux...Is there a way to use command line (or live CD?) to revert to a regular background jpg file, in home/usr/share/background?I am using Natty, and hope to sign-in without having to reinstall.
View 4 Replies
View Related
Feb 22, 2011
I'm trying to set up a firewall at the moment that allows access to my custom SSH port from only my friend's url (they have a static url but dynamic IP). I find iptables a bit of a nightmare and was hoping to use UFW for most of my day to day firewall maintenance and just make a few extra iptable rules to cover exceptional circumstances like this. Fortunately it seems UFW allows this with /etc/ufw/before.rules and /etc/ufw/after.rules. So at the moment I'm just trying to get the basic iptables rules right. As I say I'm not very good with iptables, does this look right?
Code:
## Drop Default SSH port access With Logging
iptables -N SSH_DEFAULT
iptables -A INPUT -p tcp --dport 22 -m state --state NEW -j SSH_DEFAULT
[code].....
View 14 Replies
View Related
Jun 13, 2009
is it possible to set up a user account for automatic login on fedora 11, and if so, how is it done?
View 3 Replies
View Related
Apr 11, 2010
I have a dual-boot system with windows xp and suse 11.2. The last time tried to enter to suse i couldn't login to my account ,only as root. I tried to solve this through suse dvd repair option andit detected a problem in grub. i repaired it but still nothing.Also the /home partition exists and i can access it when i login as root.
View 4 Replies
View Related
Aug 3, 2010
I was configuring usermod for vboxusers and reboot when suddenly I can't even login to my own account except for 'root'.
I had disabled user login before this. There is only 1 group when I checked in YaST which is 'users' and its group member is 'games'.
Why can't I login to home account?
View 4 Replies
View Related
Mar 17, 2010
How can I enable the root account (for login) in ubuntu 9.10?
View 9 Replies
View Related
Mar 9, 2011
How can I add a user? I used the command "useradd -m <username> -p <password> but I cannot login to this account. It says " Authentication Failure". I want a single Command to Add user with password.
View 2 Replies
View Related
Jun 5, 2011
I am trying to integrate my centos machine with active directory [Windows Server 2008] using Kerberos and LDAP. I can now successfully SSH to my linux machine as an active directory user. Then it automatically creates home directory for that particular user using the PAM module.
My problem is that i cannot login to GDM using the same active directory account. Should I do some configuration changes for GDM login to take place using an active directory account.?
View 4 Replies
View Related
Jul 15, 2011
I created an account using the following command:#useradd -g developers john and successfully changed the user password with:#passwd johnThe user is unable to login using the New Password using SSH. As a root I can login (#su - john) with no problem.
View 1 Replies
View Related
Mar 15, 2010
I've successfully joined my 8.04 LTS samba file server to the windows domain. I've read many tutorials like [URL].I used krb5 and winbind and not modern likewise-open. I had successfully got the ticket for the user under whom I was able to join to AD. I'm able to get domain controller information with net ads info. But I can't login to that server through ssh (I'm using Putty at windows XP) with any ADuser credentials. I've tried
windomainADuser
ADuser@windomain
ADuser
I only get user@10.0.0.10'password prompt and access denied.
View 2 Replies
View Related
Sep 9, 2010
a user called, cannot login - forgot the password - common case ( 200 user system )- but this one seems to be a bit different:
user tries to log in via ssh - login/passwd incorrect,
via telnet - no problem
tried a few different users on ssh - no problem... It seems the access denied applies to just a single, standard user account - only via ssh, all other users are able to login... tried also to change the passwd, no difference. beside re-creating the account, can you think about anything else? system: RHEL AS3, 2.4.21-51ELsmp
View 11 Replies
View Related
Mar 11, 2011
Is it possible to have two passwords associated with one account, one that is the actual one, and another one, a duress password, that upon entering gives a similar (desktop) environment with "decoy data"?
The idea is to have the bogus password go to an encrypted home drive that looks as if it were the real deal, but it is wiping particular sensitive (encrypted) data that is visible only with the real password in the background, so that the actual data that need to be protected are not compromised. While the person who unlocked the computer tries to find the information on it between all the rubbish files, the real files are securely wiped. The files are very sensitive in nature, so it's better to have then destroyed than have unauthorized people access them, in the event of that happening.
I happen to know that TrueCrypt has a similar option but that requires an entire decoy operating system (and I think that might be a bit conspicuous), but is there a native linux way to do it?
View 1 Replies
View Related
Aug 4, 2011
I just installed Debian 6 on a server and when the server powers up, it shows me all the accounts I created in order for me to choose and login under an account, except for the root account. At the colo where the server is going, they need the root account at the login screen.
View 11 Replies
View Related
Mar 29, 2010
If I'm getting good at anything with Fedora, it would be making mistakes. I have Fedora 12 installed and it was running fine until I attempted to set the path in bashrc and cshrc for jdk. Now I am unable to login using the only user account I created at install. When I enter my password the login screens goes blank then my mouse pointer appears with the circling dashed loading symbol for a few secs and then brings me back to the login screen asking for my password again.
View 4 Replies
View Related
Mar 26, 2010
Is there a way to login to an account with only the root password? Because I really need it the first unlock the computer next to me and second because I just want to know.
View 9 Replies
View Related
Apr 14, 2010
I planned to use Squid on my W2k3 network, because I'm tired of ISA2k6.it's a factory in itself. So, I just installed a VM with OpenSuse 11.2 and joined it to my AD W2k3 domain. After correcting the clock problems, everything is running fine except a strange feature that I was not able to solve.After a reboot, I'm not able to login with a domain account. I enter the username/password, choose the domain then it the input fields become grey for 1-2 seconds then the password field is reset and nothing happens.The most strange part comes when you logon with the local root account. You login as root, then logoff and login with any domain account : works like a charm..
View 3 Replies
View Related
Jan 6, 2010
I recently made a computer for someone who decided to get a new one instead.. so i thought i'd make a server out of it lk i had it before. so i deleted their account (while on their account) and made me an account.. but now when i try to login to my account it's.. not there? such as when i type my username and pass it says i entered an invalid user/pass. any idea how i can get my user accounts back or atleast logon to this system? i know the root password if there's any way i can login under the root account.
View 8 Replies
View Related
Dec 13, 2010
I'm looking for a script that can do two things: (1) determine the shortname of the user with the largest account in /Users and (2) look up their full/long name. I'm going to use this script to help identify who the user on a computer and while I know that's possible that a sometime-user may have a larger account than the normal-user on any given computer, the results of a script should be sufficient in most cases for my needs.I'm not sure the best way to around this. I know that can use "du -m -d1 /Users" as root:
root on torchwood
[ ~ ]$ du -m -d1 /Users
157 /Users/admin
[code]...
View 1 Replies
View Related