application should prompt for password

Hi guys I am using OpenSUSE 12.3 with XFCE and my issue is I don’t want my users to change settings like display resolution,keyboard settings etc.So when ever my user tries to change the settings it should prompt for root password like the “add printer wizard asks for root password”.Is there a way to do that.

Thanks in advance.

On 2013-05-24 13:06, nishanth9042 wrote:
>
> Hi guys I am using OpenSUSE 12.3 with XFCE and my issue is I don’t want
> my users to change settings like display resolution,keyboard settings
> etc.So when ever my user tries to change the settings it should prompt
> for root password like the “add printer wizard asks for root
> password”.Is there a way to do that.

Maybe choosing “secure settings” in yast. But these things you ask are
considered that the users should be able to change, each user a
different setting if they want.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

I didn’t find any such option like “secure settings” to do that.Can you please elaborate.

On 2013-05-24 14:06, nishanth9042 wrote:
>
> I didn’t find any such option like “secure settings” to do that.Can you
> please elaborate.
>
>

YaST → Security → Security center.

Then, in “Miscellaneous settings” you have the main setting: easy,
secure, paranoid.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Your comparison with system tasks that can only be done using root is incorrect. What you are talking about are user settings (as said above) and as such they are in the user’s domain (inside his home directory). I do not know where they are in XFCE (in KDE they are in .kde4). But taking the analogy, you could (as root) change the ownership of a user’s .kde to another user (sepcialy created for this purpose) and then remove the w permission bits from all in there for others then the (new) user. That would make it impossible for the original user to write anything there, thus (s)he will be unable to change the personal KDE configuration. But take care, it would also make impossible a lot of other KDE features, like storing there the status of KDE programs at stopping for such programs to be re-used at a new start of that program. Thus I would test this extensively before going into production.

why do you want display resolution,keyboard settings change at a super user level ?
They are features of the DE(KDE,GNOM,XFCE etc…)

Just wondering, are all of these users in the same account? Linux is for multiple users, each with their own account. The settings you mention are applied separately for each user account. Why do you need to restrict these settings?

i don’t want my users to change the settings like changing ip address,screen resolution which is not allowed in our institution.

change from network manager to ifup if you don’t want anyone to change ip address.
You should probably try out what robin_listas said

YaST –> Security –> Security center.

Then, in “Miscellaneous settings” you have the main setting: easy,
secure, paranoid.

On 2013-05-25 06:36, nishanth9042 wrote:
>
> i don’t want my users to change the settings like changing ip
> address,screen resolution which is not allowed in our institution.

Network is a system administrator setting, so users can not change it -
as long as you configure in yast traditional networking, not network
manager.

Resolution, on the other hand, is a user setting, each user chooses the
resolution they prefer. To forbid it you need to change things somewhere
and fight the system.

Your institution can mandate what they want, but it is not up to them to
choose what the developers provide.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)