Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: trembb22 on August 06, 2009, 01:00:59 PM

Title: su or sudo dont work
Post by: trembb22 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
Title: Re: su or sudo dont work
Post by: robc 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
Title: Re: su or sudo dont work
Post by: trembb22 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
Title: Re: su or sudo dont work
Post by: Kingdomcome on August 07, 2009, 12:40:24 PM
How about "sudo su"?  Thats what I use to get root
Title: Re: su or sudo dont work
Post by: trembb22 on August 07, 2009, 01:40:41 PM
yes, sudo su do the job
thanks
Title: su vs sudo: what's the difference?
Post by: gadget42 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