WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline trembb22

  • Newbie
  • *
  • Posts: 28
su or sudo dont work
« on: August 06, 2009, 10:00:59 AM »
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, 10:09:49 AM »
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, 11:32:11 AM »
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, 09:40:24 AM »
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, 10:40:41 AM »
yes, sudo su do the job
thanks

Offline gadget42

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

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

sharing is caring
The fluctuation theorem has long been known for a sudden switch of the Hamiltonian of a classical system Z54 . For a quantum system with a Hamiltonian changing from... https://forum.tinycorelinux.net/index.php/topic,25972.msg166580.html#msg166580