LinuxQuestions.org
Help answer threads with 0 replies.
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-17-2013, 12:03 PM   #1
prathamesh7478
Member
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 35

Rep: Reputation: Disabled
unable to login to particular server using sudo su


When i am trying to login to particular server i am getting the following alert.What may be the reason for this and as i dont have a root password so is there any other way i can solve this issue ?


-bash-4.1$ sudo su - pluto

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for pbhalerao:
Sorry, user pbhalerao is not allowed to execute '/bin/su - pluto' as root on plutodev01
-bash-4.1$
 
Old 09-17-2013, 12:07 PM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
What do you get from this?
Code:
sudo -l
 
Old 09-17-2013, 12:25 PM   #3
prathamesh7478
Member
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 35

Original Poster
Rep: Reputation: Disabled
User may run the following commands on this host:
(root) NOPASSWD: /usr/sbin/services myslq.server *
 
Old 09-17-2013, 12:38 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853
So you are not allowed to use su to switch to a different user, the only thing that sudo allows you is to run the services command in connection with the mysql.server option.
There is nothing that you can do about that besides asking the administrator of that system to grant you the rights you need.
 
Old 09-17-2013, 12:45 PM   #5
prathamesh7478
Member
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 35

Original Poster
Rep: Reputation: Disabled
Matching Defaults entries for pbhalerao on this host:
requiretty, !visiblepw, always_set_home, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS",
env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT
LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS
_XKB_CHARSET XAUTHORITY", secure_path=/sbin\:/bin\:/usr/sbin\:/usr/bin
 
Old 09-17-2013, 12:46 PM   #6
prathamesh7478
Member
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 35

Original Poster
Rep: Reputation: Disabled
Following is also shown when i execute sudo - l on the terminal
 
Old 09-17-2013, 12:54 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853
Still the same problem, you are simply not allowed to use su, so you have to ask the administrator.
 
Old 09-17-2013, 01:08 PM   #8
prathamesh7478
Member
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 35

Original Poster
Rep: Reputation: Disabled
Thanks Tobi. Information wa really very helpfull.
 
Old 09-17-2013, 05:07 PM   #9
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Arch, Debian
Posts: 859

Rep: Reputation: 245Reputation: 245Reputation: 245
Quote:
Originally Posted by prathamesh7478 View Post
-bash-4.1$ sudo su - pluto
Not sure if I missed something, but why do you actually use sudo? You just want to switch to user pluto, right? If you know pluto's password you could simply type
Code:
su - pluto
No additional permissions / sudo rights needed!
 
  


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
Unable to redirect all sudo messages to /var/log/sudo driftwood Linux - Server 2 10-18-2012 05:34 AM
how do I set different permission for single user for sudo login n direct login? bhaveshvv109 Linux - Security 2 11-08-2011 09:23 PM
unable to login to ubuntu mailer server raspino Linux - Newbie 19 12-20-2010 10:17 PM
Unable to login to ftp server aroop Linux - Networking 1 05-09-2004 06:45 AM
Unable to login in my server elainepearl Linux - Newbie 1 12-19-2001 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration