Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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
I use WinSCP without issue on other servers. This new server is for a job that I am working on. The administrator has set me up with a username and the ability to sudo. Using puTTy, I can sudo just fine and change files as needed. However, I do not know how to 'sudo su' in WinSCP. I cannot change or add files unless I sudo. When I run the custom command for sudo su, it crashes. Am I doing this the wrong way? Is there another way to handle this?
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.
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.
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
Yeah, I guess I need to just request that they set me up with the appropriate permissions rather than trying to deal with the sudo stuff.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.