Post AMn7JszN7jrX90W7Hc by 2T2@mstdn.starnix.network
 (DIR) More posts by 2T2@mstdn.starnix.network
 (DIR) Post #AMmQ5YPMY9oJENaraa by 10leej@mstdn.starnix.network
       2022-08-22T08:07:27Z
       
       0 likes, 0 repeats
       
       Say @opensuse and you fellow #lizards and #gecko people.Why is it when I use sudo I have to use root's password and not my users?
       
 (DIR) Post #AMmRGUjEfcbGxVfaNM by 2T2@mstdn.starnix.network
       2022-08-22T08:20:38Z
       
       0 likes, 0 repeats
       
       @10leej @opensuse Probable users are not in wheel (admin) group so you have to add it
       
 (DIR) Post #AMmXe3YZwhOxMUIsBk by thatayush@fosstodon.org
       2022-08-22T09:32:06Z
       
       0 likes, 0 repeats
       
       @2T2 @10leej @opensuse in that case it should deny sudo with a "incident will be reported" messageMaybe their sudo config is done that way?
       
 (DIR) Post #AMmrTp7al7qymM4viq by 10leej@mstdn.starnix.network
       2022-08-22T13:14:23Z
       
       0 likes, 0 repeats
       
       @thatayush @2T2 @opensuse it is, I'm just curious why it's done that way by defaultDefaults targetpw is how their doing this.
       
 (DIR) Post #AMn7JszN7jrX90W7Hc by 2T2@mstdn.starnix.network
       2022-08-22T16:11:51Z
       
       0 likes, 0 repeats
       
       @10leej @thatayush @opensuse Think it's a bit more secure that way. Different password for root and user
       
 (DIR) Post #AMn7ebvDm14CIFSRiS by dem32@mstdn.starnix.network
       2022-08-22T16:15:36Z
       
       0 likes, 0 repeats
       
       @2T2 @10leej @thatayush @opensuse and su is still better :dude_smug:
       
 (DIR) Post #AMn8jKKOiMkD832xBA by 10leej@mstdn.starnix.network
       2022-08-22T16:27:38Z
       
       0 likes, 0 repeats
       
       @dem32 @2T2 @thatayush @opensuse better how? You've yet to actually tell me how switching the user session to root on a non temporary basis is better.
       
 (DIR) Post #AMnB9c2rfHJPW0VWVs by 2T2@mstdn.starnix.network
       2022-08-22T16:54:48Z
       
       0 likes, 0 repeats
       
       @10leej @dem32 @thatayush @opensuse Could be this. Perhaps Opensuse comes with a root password that on many distro is disabled by default  🤔 From what i know xorg often run as root and an exploit can capture your input pass so your system might get compromised. Having a separate password for root think can be more secure if you're not giving your root password (and user does not belong to wheel group) and so only your user get compromised not the whole system. Once you reboot, the system remains intact and whatever userland exploit will vanishHave to make more research thoughhttps://unix.stackexchange.com/questions/109944/why-is-the-sudo-password-different-than-the-su-root-password
       
 (DIR) Post #AMnGs2ptux6R7ORxhY by thatayush@fosstodon.org
       2022-08-22T17:58:52Z
       
       0 likes, 0 repeats
       
       @2T2 @10leej @dem32 @opensuse That's kinda old and wrong today, xorg on the login manager only runs as root, the user session starts a new x server on the user account. This is also why it takes a second or two since the x server has to relaunch. Sudo doesn't care whether root has a password or not. As 10leej pointed out in a previous reply it is configured to use root's password as distro default provided by opensuse.
       
 (DIR) Post #AMnHf4BxfJTBVr8zVQ by dem32@mstdn.starnix.network
       2022-08-22T18:07:43Z
       
       0 likes, 0 repeats
       
       @10leej @2T2 @thatayush @opensuse i have told you before kek, you can control how long your root for on the fly, vs sudo witch is a set time and you need to keep retyping the password with sudo, also sudo tyipically uses the user password,
       
 (DIR) Post #AMnTK9w8JJCMhMXO4m by 10leej@mstdn.starnix.network
       2022-08-22T20:18:23Z
       
       0 likes, 0 repeats
       
       @dem32 @2T2 @thatayush @opensuse sudo -i
       
 (DIR) Post #AMo9qtOv0UOf2qICjw by dem32@mstdn.starnix.network
       2022-08-23T04:14:56Z
       
       0 likes, 0 repeats
       
       @10leej @2T2 @thatayush @opensuse why not just su then? lol
       
 (DIR) Post #AMoGpOCgDCbvg3nZ1E by 10leej@mstdn.starnix.network
       2022-08-23T05:33:06Z
       
       0 likes, 0 repeats
       
       @dem32 @2T2 @thatayush @opensuse because sudo -I puts commands in the sudo log to audit later
       
 (DIR) Post #AMoGqSztsFCMppKntw by 10leej@mstdn.starnix.network
       2022-08-23T05:33:18Z
       
       0 likes, 1 repeats
       
       @dem32 @2T2 @thatayush @opensuse because sudo -i puts commands in the sudo log to audit later
       
 (DIR) Post #AMoPbRKmfsSmv80pBg by 2T2@mstdn.starnix.network
       2022-08-23T07:11:25Z
       
       0 likes, 0 repeats
       
       @10leej @dem32 @thatayush @opensuse i always use sudo -i
       
 (DIR) Post #AMoQXCo0qibwemEEPg by 2T2@mstdn.starnix.network
       2022-08-23T07:21:52Z
       
       0 likes, 0 repeats
       
       @dem32 @10leej @thatayush @opensuse but is a better idea to use just su. Heard su also is much smaller than sudo
       
 (DIR) Post #AMoRnuvsecW06LRQBs by 2T2@mstdn.starnix.network
       2022-08-23T07:36:06Z
       
       0 likes, 0 repeats
       
       @dem32 @10leej @thatayush @opensuse Truth is sudo has quite some discovered exploits while coreutils which includes su has 0 exploits foundhttps://security.archlinux.org/package/sudo