LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 09-12-2007, 10:29 AM   #1
ctroyp
Member
 
Registered: Sep 2005
Distribution: Fedora Core 4 / CentOS
Posts: 92

Rep: Reputation: 15
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...
 
Old 09-12-2007, 01:23 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
Old 09-12-2007, 01:28 PM   #3
ctroyp
Member
 
Registered: Sep 2005
Distribution: Fedora Core 4 / CentOS
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Tinkster View Post
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?

Thanks!
 
Old 09-12-2007, 03:19 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
Old 09-12-2007, 03:23 PM   #5
ctroyp
Member
 
Registered: Sep 2005
Distribution: Fedora Core 4 / CentOS
Posts: 92

Original Poster
Rep: Reputation: 15
The servers I have always work with, I have had root access without sudo. I am working on their web files and database.
 
Old 09-12-2007, 03:38 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
Old 09-12-2007, 03:51 PM   #7
ctroyp
Member
 
Registered: Sep 2005
Distribution: Fedora Core 4 / CentOS
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Tinkster View Post
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.

Thanks for the help.
 
Old 09-12-2007, 03:55 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally Posted by ctroyp View Post
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.

Thanks for the help.
Hey, no worries, and best of luck! :}


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No password for sudo? orange400 Linux - Software 9 03-18-2012 10:08 AM
sudo password...? yubimusubi Linux - General 15 09-04-2009 12:08 AM
is possible that sudo always asks the password? Lantius Linux - Software 5 05-09-2007 04:31 PM
Force sudo to re-ask for password? humbletech99 Linux - Security 3 12-06-2006 10:14 AM
sudo password problem Murdock1979 Linux - General 6 04-26-2006 11:39 PM


All times are GMT -5. The time now is 11:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration