** Description changed:

- one cannot install drivers unless one is root (or has root priv
- escalation via sudo).
+ [ Impact ]
+ one cannot install drivers unless one is root (or has root priv escalation 
via sudo).
  
- For that reason, ubuntu-drivers should not run without a priv check.
+ For that reason, ubuntu-drivers should not run without a permissions
+ check.
  
  ubuntu@doubletusk:~$ ubuntu-drivers --gpgpu autoinstall
  This is gpgpu mode
  E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: 
Permission denied)
  E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), 
are you root?
  
+ This shouldn't trigger the apt privilege error, ubuntu-drivers itself
+ should check to see if it's running as root and then prompt the user.
  
- This shouldn't trigger the apt privilege error, ubuntu-drivers itself should 
check to see if it's running as root and then prompt the user.
+ [ Steps to reproduce ]
+ 1. call 'ubuntu-drivers install'
+ 2. observe the crash due to lack of permissions:
+ PermissionError: [Errno 13] Permission denied: 
'/lib/modprobe.d/nvidia-kms.conf'
+ 
+ 
+ [ Test plan ]
+ 1. call 'ubuntu-drivers install' without root
+ 2. call 'ubuntu-drivers install --gpgpu' without root
+ 
+ [ Expected result ]
+ 1. observer a new message:
+ Error: 'ubuntu-drivers install' must be run as root. Try using 'sudo'.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1920225

Title:
  ubuntu-drivers should not run unless user is root

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1920225/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to