LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-15-2017, 02:22 PM   #1
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 226

Rep: Reputation: 42
mate-cpufreq-applet - prompt for user password (sudo) instead of root?


As the title suggests, I am wondering if it is possible to have the mate cpu frequency scaling applet prompt for sudo password instead of the root password? I'm posting this here because I've built mate for BLFS a couple of times, and other distributions handle this a bit differently.

I remember in Ubuntu this applet by default would prompt for sudo password and there was a way to run dpkg-reconfigure to enable the suid bit so that no password would be required. (When building this under BLFS the configure option to set suid bit seems to do nothing anyway.)

I suspect manually adding a suid bit could alleviate the need for a password, but I would prefer a password to be required - but just not the root password as I would otherwise like to lock the root account.
 
Old 12-16-2017, 03:20 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,285
Blog Entries: 1

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Hi

Would it be possibe to edit the sudoers file

## User privilege specification
##
root ALL=(ALL) ALL
user ALL=PASSWD:/some program?
 
Old 12-30-2017, 01:19 AM   #3
emmett1
LQ Newbie
 
Registered: Nov 2017
Location: Malaysia
Distribution: Linux From Scratch
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by ordealbyfire83 View Post
As the title suggests, I am wondering if it is possible to have the mate cpu frequency scaling applet prompt for sudo password instead of the root password? I'm posting this here because I've built mate for BLFS a couple of times, and other distributions handle this a bit differently.

I remember in Ubuntu this applet by default would prompt for sudo password and there was a way to run dpkg-reconfigure to enable the suid bit so that no password would be required. (When building this under BLFS the configure option to set suid bit seems to do nothing anyway.)

I suspect manually adding a suid bit could alleviate the need for a password, but I would prefer a password to be required - but just not the root password as I would otherwise like to lock the root account.
hey,

I think i've been on this problem before. Its asking root password instead user password when mounting partition with thunar, run things as root using pkexec command and etc. Its because of wrong permission/owner of these 2 directory:

Quote:
1) /etc/polkit-1/rules.d/
2) /usr/share/polkit-1/rules.d/
This the output of my 'ls -la /{etc,usr/share}/polkit-1/rules.d' after this problem fixed:

Quote:
# ls -la /{etc,usr/share}/polkit-1/rules.d
/etc/polkit-1/rules.d:
total 12
drwx------ 2 polkitd root 4096 Nov 21 07:02 .
drwxr-xr-x 3 root root 4096 Oct 26 22:44 ..
-rw-r--r-- 1 root root 326 Nov 20 17:27 50-default.rules

/usr/share/polkit-1/rules.d:
total 16
drwx------ 2 polkitd root 4096 Dec 19 09:16 .
drwxr-xr-x 4 root root 4096 Oct 31 23:26 ..
-rw-r--r-- 1 root root 186 Dec 17 00:42 org.freedesktop.NetworkManager.rules
-rw-r--r-- 1 root root 264 Dec 19 09:16 org.gtk.vfs.file-operations.rules
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Bash scripting with sudo and password prompt, and accepting user input. Jetso Programming 14 07-31-2011 12:31 PM
[SOLVED] No prompt for root password after attempting to enter single user mode infinite_scale Linux - Newbie 3 07-30-2011 09:51 AM
sudo non-user/non-root password Alex_Dc Linux - Security 3 02-19-2010 06:28 PM
SuSE93 Root password rejected from normal user mode (No Sudo, No YaST) Peacepunk SUSE / openSUSE 2 02-11-2007 06:34 PM
Running a script as root with sudo without entering the user password kloss Linux - General 8 10-10-2005 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration