LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 11:03 AM   #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, 11:07 AM   #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, 11:25 AM   #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, 11:38 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 11:45 AM   #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, 11:46 AM   #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, 11:54 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Still the same problem, you are simply not allowed to use su, so you have to ask the administrator.
 
Old 09-17-2013, 12: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, 04:07 PM   #9
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
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



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

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

All times are GMT -5. The time now is 01:03 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
Open Source Consulting | Domain Registration