LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2023, 01:13 AM   #1
ratan61
LQ Newbie
 
Registered: Aug 2023
Posts: 29

Rep: Reputation: 0
Angry Why does userhelper needs to have a SUID enabled .


Hello All ,

I have been reading about what is userhelper and didn't find very clear evidences why does userhelper is needed by the OS. However, there is another challenge why userhelper is enabled with SUID and what happens if we disable the SUID on the file : /usr/sbin/userhelper . Please help urgently

Last edited by ratan61; 12-13-2023 at 01:18 AM.
 
Old 12-13-2023, 02:37 AM   #2
lvm_
Member
 
Registered: Jul 2020
Posts: 933

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Quote:
Originally Posted by ratan61 View Post
I have been reading about what is userhelper and didn't find very clear evidences why does userhelper is needed by the OS.
It isn't. It is part of usermode package providing GUI interfaces for certain system tasks - see package description, which can be done in other ways.

Quote:
Originally Posted by ratan61 View Post
why userhelper is enabled with SUID and what happens if we disable the SUID on the file : /usr/sbin/userhelper
It will loose privileged access needed to do these task and stop working.

Last edited by lvm_; 12-13-2023 at 02:38 AM.
 
Old 12-13-2023, 02:53 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,864

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
it looks like a homework question again. Anyway, only the root user is allowed to manage users, therefore users need to use setuid apps to configure their own settings (like set password).
 
Old 12-13-2023, 11:22 PM   #4
ratan61
LQ Newbie
 
Registered: Aug 2023
Posts: 29

Original Poster
Rep: Reputation: 0
do you mean if I disable the SUID on the userhelper file , will disable the non-root user to set the password?
 
Old 12-14-2023, 12:31 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,583
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
Quote:
Originally Posted by ratan61 View Post
do you mean if I disable the SUID on the userhelper file , will disable the non-root user to set the password?
Traditionally you changed your password using the passwd command. If you look at that, you will see that it too has the SUID bit set. Changing a password requires write access to the shadow file and only root has that, so logically all password-changing commands need SUID.
 
Old 12-14-2023, 06:36 AM   #6
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,798

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
I didn't know about userhelper.
Perhaps it is only used in a PAM dialogue? For ex "Password expired, please enter new Password"?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] What is "userhelper pam_unix(passwd:chauthtok): conversation failed" error? tercel Linux - Newbie 3 09-09-2022 04:12 AM
LXer: Why your computer needs a firewall enabled LXer Syndicated Linux News 0 11-22-2011 08:10 AM
Userhelper must be setuid root leroux Linux - Newbie 9 03-10-2005 01:42 AM
help regarding consolehelper + userhelper echo77 Linux - Software 0 12-07-2004 03:15 AM
SUID file drops suid bit on append? c_coder Programming 1 03-12-2004 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration