Solved no owner privilege when running apps

Hi all, just installed FreeBSD 14 being not smart enough with FreeBSD. If I want to run most of application the the xfce menu, then I've insufficient privilege to make changes, saving, editing and so on.
i.e. if I run XSane it does not find my scanner until I run it from a terminal command with SUDO first, or if I run Stellarium no settings editing is saved if not started by SUDO from command line. I guess am missing some property not well setted as user, and wish to understand what to do for solving this.
Could you someone put me on the right path?
Thank you much
 
How are you starting XFCE? From a display manager? Or with startx?
then I've insufficient privilege to make changes, saving, editing and so on.
It depends on the setting. There are "user" settings and "system" settings. User settings should be changeble by the user, that's what they're for. System settings however usually require elevated privileges. Similarly on Windows, certain settings require administrator access.

I run XSane it does not find my scanner until I run it from a terminal command with SUDO first
Right. Once the scanner has been found and added, the user can access it.

I guess am missing some property not well setted as user, and wish to understand what to do for solving this.
Adding a device usually requires more privileges. Although you can often change those with some careful manipulation of devd(8).

For example, I have a USB joystick and I needed to add /usr/local/etc/devd/dashine.conf:
Code:
notify 100 {
  match "system"        "USB";
  match "subsystem"     "INTERFACE";
  match "type"          "ATTACH";
  match "vendor"        "0x045e";
  match "product"       "0x028e";
  action "chgrp operator /dev/$cdev; chmod 660 /dev/$cdev";
};
This changes the (group) ownership of the device and sets up some write permissions whenever the device is plugged in. My user is a member of the 'operator' group and can then actually use this joystick.
 
How are you starting XFCE? From a display manager? Or with startx?

Thank you for replying. Yes XFCE but in autologin mode with no initial user selection
It depends on the setting. There are "user" settings and "system" settings. User settings should be changeble by the user, that's what they're for. System settings however usually require elevated privileges. Similarly on Windows, certain settings require administrator access.


Right. Once the scanner has been found and added, the user can access it.

............................................
This changes the (group) ownership of the device and sets up some write permissions whenever the device is plugged in. My user is a member of the 'operator' group and can then actually use this joystick.
it could be that I just added myself and video group in the initial settings and (go on guessing) this is not enough to run programs with full ownership when I run them from the menu, it happens with most of them. I'd like to find a way for not running everything in "sudo" from terminal command
 
ok, just found that it was as said above, my user wasn't added to wheel group in the initial settings.
Just gave
pw group mod wheel -m myuser

and now I can start all software in the xfce menu as owner
 
Back
Top