Issue in passing passwd to login into a sudo account
Hi Gurus,
I have small issue... I used to pass the passwd for sudo commands like below,
And it was able to login into "villin" sudo account successfully. But now, I'm using the same in another script for the same sudo account login... It's not working now and I'm getting below error, My script:
===========
Error:
======
Quote:
kinit(v5): Password incorrect while getting initial credentials
You did not kinit successfully.
Do I need to set any variable here to achieve this?
Can anyone please advice?
Regards, VRN
---------- Post updated at 09:26 PM ---------- Previous update was at 08:03 PM ----------
Hello frnds,
I found the issue, but i need some more help...
Actually it's working for sometimes, nit working for sometimes... But after logged into sudo account, the default shell is 'csh'. So after logged into this account, I'm trying to set some env variables. The syntax of setting variables and calling them inside csh is wrong...
It's unable to read those variables and the Perl script is not executing here... Can anyone please have a look at the below my code and suggest on this?
Is there a way to easily change an account to be a non login account (NP in the shadow) file?
I know I can just edit the file but that is not what we want to do. We use access control software and want to provide a way to set an account to be non-login using simple commands that can be mapped... (0 Replies)
Hi,
I have to write a shell script to sudo other account. Foreg,
i am working in account ramdev1, i have a sudo access where through shell script i need to sudo another account
ramdev2 and read a file "ram.inc" get those data and save it in a .txt file and return it?
Since i am new to... (21 Replies)
Hey guys just wondering how i could lock a specific acount by prepending LK
to the password field in the /etc/shadow file.
it cannot be done through a command since the script gets called by a menu driven interface so i cant use "passwd". Is there a way where i can search for a specific account... (11 Replies)
Hi All,
I have a requirment..
I need to pass a registry password to a command.. Actually when the command executed in the script, it will return some warnings first, then after it'll ask password like below,
$ cleartool rmtag -vob -all <vob_name>
Warnings: ------------------
Registry... (3 Replies)
I logged in through ssh, but can't re-login as root.
sudo login
Arch login: root
Password:
Login incorrect
Arch login:
But I am sure my password is right. Why?
But on local tty1, this works. (2 Replies)
Hi
Hope someone can sched some light i'm trying to execute a script via sudo but i don't want to be prompted for a password when i run the script using sudo
my sudo entry does work in that the script gets executed but i'm having to give a password, my current entry is given below
user1 ... (0 Replies)
I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs.
I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Hi,
How i can pass the login details to the URL which is password protected with the htaccess using command line or script (perl,or shell,or php).
Any help or hint appreciated.
Thanks,
SJ (4 Replies)
Hi All,
I am trying use the below su command to execute a shell script using different user.
Caould some one please help me out as to how to pass the pass the password when prompted or is there any way to execute the shell script using other user.
I have had look at the other posts in forum... (1 Reply)