sudo without password prompt?
Could anyone please explain to me how to execute 'sudo su' so that it will not prompt for a password? Looking at sudo docs, it explains that is the invoking user is the same as the target user and the passwords are the same, then it will not prompt. This is the case, but it is prompting for the password.
I can enter the password in the command shell, but when using WinSCP, it crashes because it is trying to prompt for the password. So I am essentially stuck and not able to use WinSCP to edit files. Thanks for any help... |
I can't make sense of the request... what have sudo and WinSCP
got to do with each other? And I have quite happily used WinSCP w/ a password entry, no crashing. Maybe you have some other issue on your WinDOHs machine? Cheers, Tink |
Quote:
Thanks! |
The only work-around is to copy the stuff to your users home
on that server, then ssh into it, sudo and mv them to the target directory ... but you (and the admin) need to have a thought about how to change that. What do you need to achieve, why do you have to become root on the target machine, which files are you updating? You won't be able to utilise sudo to work with WinSCP, that's just a completely different task domain. Cheers, Tink |
The servers I have always work with, I have had root access without sudo. I am working on their web files and database.
|
OK ... and how proficient are you with Linux and its file-systems?
Maybe you should make the web-files owned by a group which your ordinary user account belongs to, and have them (and their directory structure) group-writable? And for the database stuff: do you need file-level access to those? It's just that working on a machine as root on a regular basis to me indicates that the initial set-up is flawed. Cheers, Tink |
Quote:
Thanks for the help. |
Quote:
Cheers, Tink |
All times are GMT -5. The time now is 09:09 AM. |