Being a unix noob, what does this command do?
$sudo /usr/bin/su -something
Is -something a password or username for running commands under this username?
I am trying to connect to remote terminal using putty command line with below command:
C:\Program Files>putty.exe -ssh -2 -l username -pw password -m remote.cmd -t 10.127.1.1
In remote.cmd file, I want to give sudo command which requires password. e.g.
sudo username. It prompts me for password.
I want to know how can I write command in remote.cmd file to provide password for it?
I have installed RHEL 5.0 on virtualbox as guest OS and using Windows 7 as Host OS.
The installation is successfully done but now when I execute any command it says command not available like visudo, apt-get install, etc.
Also, when I use sudo to run a command it asks me for the password but after 3 attempts it says incorrect password.
I am executing a SUDO command in PHP script,
$username = 'tester';
$password = 'testerspassword';
$node = 'localhost';
exec('sudo /usr/sbin/ejabberdctl register '.$username.' '.$node.' '.$password.' 2>&1',$output,$status);
When i am trying with putty and executing same as
sudo ejabberdctl register testuser1 localhost pass123
Its working , but through PHP script its not working.
So I want to pipe my netstat output into a mysql database
The plan is to make it a continuous crontab event. That way I can store that data and use it elsewhere easily.
I want to develop a command line to login the ftp server with username & password. The script would be run on AIX 6.1, but now I was stuck.
I have searched on google and got some solutions, but no one works.
I want to list the sudo permissions of / commands allowed to be executed by all the members of a given group, but this one is not working:
# sudo -l -g Production-Support.GG
usage: sudo -h | -K | -k | -L | -V
usage: sudo -v [-AknS] [-p prompt]
usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U username] [-u username|#uid] [-g groupname|#gid]
I am running Fedora 17.
My user was created during the live cd install and has root/admin privileges. Hence, I use the sudo command to perform root actions. E.g
I enter my password and it works.
However, when I access
My username is not listed.
Can someone explain this?
After setup ubuntu with default settings, It allows user to login with password, so I use passwd -l [username] to forbid password login both in ssh and console.
But when I use sudo to execute commands, it needs password so I can't use sudo any more.
Is there any solution that I can use sudo again, another question is how to forbid password login both in ssh and console but keep sudo password aut
I ran this command using my java program-
sudo -u root -S pwd
I got this output-
command=sudo -u root -S pwd
sudo: sorry, you must have a tty to run sudo
I tried editing /etc/sudoers but it already contains
<username> ALL=(ALL) NOPASSWD: ALL
What should I do to fix it?