WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: su or sudo dont work  (Read 6408 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

Online gadget42

  • Hero Member
  • *****
  • Posts: 765
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
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