General :: Switch User- No Passwd?

Dec 20, 2010

All servers mentioned below run OpenSuSE, either 10 or 11.I am currently working on a few scripts that are meant to be used as part of a continuous integration setup. I am trying to keep these scripts reasonably secure, and so I have made sure that all the servers run these scripts only as a specific user (user1) that has permissions to basically nothing else. The problem I am currently running into is that I need to start and stop tomcat as user1 but this user doesn't have permissions to the tomcat rectory (only tomcat has execute permissions). I have a temporary workaround in place while I work on the scripts (I have an SSH key in place that allows me to SSH from user1o tomcat without a password and execute my commands that way) but it is not very secure. I have tried adding the following line to /etc/sudoers:

Code:
tomcat localhost = NOPASSWD: /opt/tomcat/bin/startup.sh, /opt/tomcat/bin/shutdown.sh
but it doesn't work as I expected it to. I tried a few different syntaxes for that line,

[code]...

View 6 Replies


ADVERTISEMENT

General :: Delete /etc/passwd And Recover It With /etc/passwd - From Runlevel 1 The Lastly Created User Is Not Having His Account After Recovery?

Jan 14, 2011

we know that /etc/passwd - is a replica of /etc/passwd file and acts as a backup in any damage done to /etc/passwd file..i have observed a strange thing in RHEL 5.4....for example... if /etc/passwd has 100 accounts.. then /etc/passwd - is having only 99 accounts....when i add 101 useraccount with "useradd" then /etc/passwd has 101 accounts and /etc/passwd is having the 100th account of /etc/passwd - ..when i delete /etc/passwd and recover it with /etc/passwd - from runlevel 1 the lastly created user is not having his account after recovery.. what is the solution? this is same case even with /etc/shadow and /etc/shadow -

View 2 Replies View Related

General :: Shell Script For Printing User From /etc/passwd?

Oct 15, 2010

How we can take username from the /etc/passwd which have UID more than or equal to 500.

View 3 Replies View Related

General :: SFTP With User Nectand Passwd Set On The Header Of Connection

Mar 25, 2011

How I can do a ftp connection putting the user and passwd, and I would do! Today, I need to know how can I do this, but in SFTP!

View 1 Replies View Related

General :: Find Command When Loggin As A Normal User And Search For A File Passwd Under?

Dec 25, 2010

when loggin as a normal user and search for a file passwd under /etc. i get few errors with permission denied.how to ignore this permission denied errors.

csh hostname 109 % find . -name passwd
find: ./lvm/backup: Permission denied
find: ./lvm/archive: Permission denied

[code]....

View 4 Replies View Related

Security :: User Appear In /etc/shadow And Not /etc/passwd

Jul 28, 2010

In what cases would a user appear in /etc/shadow and not /etc/passwd

View 2 Replies View Related

Security :: SSH User/passwd Or PPK Secure Key?

Apr 22, 2010

we are trying to make a policy decision whether to go with SSH user/passwd or PPK secure key ? our servers are hosted remotely by a hosting service. we were wondering which of these two models are more secure.e.g. i would tend to think that user/passwd with account lockouts upon failed attempts would be more secure because the other option exposes your server in case someone sneaks the PPK file or steals your whole computer.however, what makes me doubt myself is that Amazon Web Services EC2 cloud hosting uses PPK by default (although an instance's SSH config can be change to accommodate logging in but they don't endorse it).

View 3 Replies View Related

General :: Switch User In RedHat Like XP?

May 13, 2010

In our cluster, RedHat4 & 5 machines, if someone locks the computer and walks away no body can use it. Is there a feature in RedHat5, Gnome, KDE etc that would allow for the option of switching users at the lock screen, so more than one person can be logged in?

View 2 Replies View Related

General :: An Option To Switch User?

Jun 16, 2011

How you lock your screen, there is an option to switch user? well i wanna disable it because my brother always switches it and it slows down my computer

View 3 Replies View Related

Red Hat / Fedora :: Server Creates User Account In /etc/passwd?

May 16, 2011

I have just got my Openldap server up and running howerver, I admit I'm a little confused about authenticating a client mechine to the server. When I create an account on the ldap server, does this mean that the server creates a user account in the /etc/passwd, or somewhere else on the server?

View 2 Replies View Related

Security :: Loging In Ssh With User Nmot Present In /etc/passwd

Jan 26, 2011

Is it possible to log in secure shell (openssh ) using a username and password which is not present in "/etc/passwd" .The shell created after authentication should be owned by the logged in user . Is it possible to store the user infromation like uid , gid , home dir , shell in some remote machine instead of /etc/passwd and then retrive the these these information when a session is created for the logged in user .

View 2 Replies View Related

General :: Switch User At Screen Lock?

May 13, 2010

In our cluster of RedHat4 & 5 machines, if someone locks the computer and walks away no body can use it. Is there a feature in RedHat5, Gnome, KDE etc that would allow for the option of switching users at the lock screen, so more than one person can be logged in

View 11 Replies View Related

General :: Unabel To Switch User Shell?

Mar 17, 2011

I have a big problem here.I have 2 shell windows, ne is a root shell and the other with some user account.If I change the root password in the root shell window aspasswd rootI can change it, but when I go into the user shell window, and I do "su" I cannot switch to root. Always "incorrect password".Same happen if I try to do "su <some-other-user>"This happen ONLY in shell windowws. If I try, for example, to run some administration service, like system-config-service, the root password is accepted in the prompting window.

View 6 Replies View Related

Security :: Requiring PPK Secure Key - Disabling User/passwd Login

Apr 23, 2010

I am using Red Hat and was wondering how to disable username and password only login and require that a PPK secure key file be used for authentication ? I can log in using the secure private key and the public key that is in ~/.ssh/authorized_keys but i can still log in using the plain username and password login.

View 2 Replies View Related

Server :: Use Htpasswd To Add Password To User And Store In /etc/vsftpd/passwd

Feb 4, 2010

I started to work on building a ftp by vsftpd in our lab (that's only for our lab members). I am going to setup some the virtual users for each of the member. We have a CentOS5 (without upgrade after the fresh installation). I try several ways to setup the vsftpd for virtual users. 1) with db4 2) with mysql 3) without database and use htpasswd. But all fails. Actually, I don't want to use database, so I am going to find out the reason of failure on 'htpasswd' method

My vsftpd is installed in /etc/vsftpd (for only using ftp account, it is no problem to login).

1) I setup an account called vftpuser and build the corresponding home (/home/vftpuser), and then I setup another account call usera and also create a directory within /home/vftpuser.

2) I use htpasswd to add passwd to usera and store the passwd in /etc/vsftpd/passwd.

3) I added the name of usera to /etc/vsftpd/user_list

4) I create a directory /etc/vsftpd/user to store a unique conf for each user (for usera, the conf named usera) which contains the local root for users, which is

[Code]....

View 1 Replies View Related

Software :: Check A String With Actual User Passwd (ie Password In /etc/shadow)?

Sep 24, 2009

I am trying to write a remote access module. Is there any function in linux where I can give string (password entered by user) and compare it with the actual user password stored in /etc/shadow. Since the password is stored encrypted in /etc/shadow I cannot parse and compare. So I want some method to compare if my user entered the correct password..Is there any function for that..

View 6 Replies View Related

General :: Mini Linux Distributive With Multi User Switch

Sep 27, 2010

I`m trying to find minimalistic distributive for vmware player with switch user option. With gdmflexiserver or something like this.Or perhaps there is a way how to do this in puppylinux or DSL.

View 2 Replies View Related

Fedora :: Create A Shell Script That Adds User And Password In The Passwd And Smbpasswd?

Feb 18, 2010

is it possible to create a shell script that adds user and password in the passwd and smbpasswd?

View 3 Replies View Related

Server :: Unable To Login To A User Account Even After Clearing The Password From Root Using Passwd -d

Aug 10, 2010

Not able to login to a user account, even after clearing the password from root using passwd -d

[root@ivrsdb1_pnq /]# passwd -S oracle
Password locked.
[root@ivrsdb1_pnq /]# passwd -u -f oracle
Unlocking password for user oracle.

[code]....

View 3 Replies View Related

OpenSUSE :: Updated To 11.4 [64 Bit] - Rkhunter Is Giving Warning: User 'rtkit' Has Been Added To The Passwd File

Mar 13, 2011

i have just updated to openSuSE 11.4 [64 bit]; rkhunter is giving these Warnings :

Warning: User 'rtkit' has been added to the passwd file.
Warning: User 'pulse' has been added to the passwd file.
Warning: User 'statd' has been added to the passwd file.
Warning: Changes found in the group file for group 'audio': User 'pulse' has been added to the group
Warning: Group 'rtkit' has been added to the group file.
Warning: Group 'pulse' has been added to the group file.
Warning: Group 'pulse-access' has been added to the group file.
Warning: Suspicious file types found in /dev: /dev/shm/initrd_exports.sh: ASCII text
Warning: Hidden directory found: /dev/.sysconfig
Warning: Hidden directory found: /dev/.mount

Do these look Normal, Are these False-Positives??

View 4 Replies View Related

Fedora :: How To Switch User In KDE

Jul 1, 2010

In FC13, when one user logs into GNOME and locks the screen, there is a "switch user" button so someone else can return to the log in screen and log in as well. But in KDE, there is only two buttons "Unlock" (for the current user) and "Cancel"

View 7 Replies View Related

Fedora :: Switch User From Console?

Nov 15, 2010

As everyone knows, the graphic user can be swithed with Ctrl+Alt+F7 (or F1 in Fedora). There are also a few text mode consoles - Ctrl+Alt+F2...F6.

Fortunately, there is a Switch User button when the screen is locked from Gnome with the default screensaver.

The question is how can a new graphical user be switched from console (Ctrl+Alt+F2...F6) if the screen is locked by some other screensaver which does not have this function?

View 3 Replies View Related

Fedora :: Command To Switch To Normal User?

Aug 29, 2011

I can switch to root by typing "su"After having done something, I hope to switch back to original normal user. What's the command,

View 3 Replies View Related

OpenSUSE :: System Freezes When Trying To Switch User?

Jan 2, 2010

I have OpenSuSe 11.2 64-bit installed on my HP Compaq 6730s laptop. When I'm trying to switch user black screen appears and my system does not react on any key combinations (ctrl+alt+del; ctrl+alt+F7 ...). This was not reproduced before ATI driver installation.

# uname -a
Linux xela 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26 15:49:03 +0100 x86_64 x86_64 x86_64 GNU/Linux

View 9 Replies View Related

Ubuntu :: Switch User Goes To Lock Screen?

May 28, 2010

I have a problem with Switch User on a newly installed Ubuntu 10.04 on Asus Eee 1101ha.When I try to use Switch User, I just get to the Lock Screen of the currently logged in user, where I'm asked to enter a password.There is also "Switch User" button on the Lock Screen - the screen gets black and then gets back to the same Lock Screen. Login Screen is not displayed.

View 8 Replies View Related

Ubuntu :: Switch To Root User In Gui Of Live?

Sep 23, 2010

I need to access some things in "documents and settings" folders (my windows xp crashed). I believe I need to be root user in linux to do this. I am running a ubuntu linux live (uninstalled) cd. I am new to linux and I do not know if this is even possible. I want to copy some things from documents and settings folder to an external drive (as backup) but I cannot access them as things are now (linux gives me an error when I try) but I would like to do it in gui so I can physically "see" everything and look through it.

View 9 Replies View Related

Programming :: Switch User In A Bash Script?

Jul 28, 2011

I need to switch from one user to another in a script in a solaris machine. No one of those users is root. I see I can use su commandt I think I can't pass the password as a parameter . I'm using bash. Is there anyway that I can switch user in a bash script

View 7 Replies View Related

General :: Exactly Is There In The /etc/passwd File?

May 20, 2010

Well we all know that it holds passwords. But cat-ing it gives out nothing. Not even encrypted gibberish. So how exactly is a password stored in this? Is this like a device file or something?

View 4 Replies View Related

General :: Crontab: 12 3 12 4 4 Cat /etc/passwd?

Jan 5, 2010

If I configure a crontab like below.12 3 12 4 4 cat /etc/passwd I know that the cat command will get executed at the configured time. But where will the output of that command go?If it is something like below, then out put will be routed to /tmp/file1.12 3 12 4 4 cat /etc/passwd > /tmp/file1

View 4 Replies View Related

Ubuntu :: Fast User Switch Applet In Karmic?

Apr 11, 2010

In Jaunty, I was using the fast-user-switch-applet, which puts a menu on the panel to enable quickly switching between users. The package does not seem to exist in Karmic, however. A search of Ubuntu packages reveals versions for Hardy, Intrepid, Jaunty, and Lucid, but skips Karmic.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved