WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: su or sudo dont work  (Read 7341 times)

Offline trembb22

  • Newbie
  • *
  • Posts: 28
su or sudo dont work
« on: August 06, 2009, 01:00:59 PM »
I added a new user into TC, when I do: su under this user, I got the following message:
su: must be suid to work properly

when I use putty to log remotely using ssh and do su or sudo I got the following message (trembb is my username):
trembb is not in the sudoers file.

thanks for your help

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: su or sudo dont work
« Reply #1 on: August 06, 2009, 01:09:49 PM »
you need to add rules for that user in the /etc/sudoers file, something like:
trembb ALL=NOPASSWD: ALL
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline trembb22

  • Newbie
  • *
  • Posts: 28
Re: su or sudo dont work
« Reply #2 on: August 06, 2009, 02:32:11 PM »
thanks it work now for: "sudo" but still have the following message when doing "su":
su: must be suid to work properly
thanks for your help

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: su or sudo dont work
« Reply #3 on: August 07, 2009, 12:40:24 PM »
How about "sudo su"?  Thats what I use to get root

Offline trembb22

  • Newbie
  • *
  • Posts: 28
Re: su or sudo dont work
« Reply #4 on: August 07, 2009, 01:40:41 PM »
yes, sudo su do the job
thanks

Offline gadget42

  • Hero Member
  • *****
  • Posts: 914
su vs sudo: what's the difference?
« Reply #5 on: June 28, 2022, 05:50:19 AM »
su vs sudo: what's the difference?

https://opensource.com/article/22/6/linux-su-vs-sudo-sysadmin

sharing is caring
** WARNING: connection is not using a post-quantum kex exchange algorithm.
** This session may be vulnerable to "store now, decrypt later" attacks.
** The server may need to be upgraded. See https://openssh.com/pq.html