Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

User Privileges

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
peterbata
Posts: 7
Joined: 2021-10-25 13:48
Has thanked: 2 times

User Privileges

#1 Post by peterbata »

Hello all. First time post. And, totally new to Debian. The last thing anyone wanted to hear, right? I downloaded the Debian complete ISO and the installation went well. I can log into the desktop but find that I am limited to what I can do. Intalling additional software for example. Can I add myself to the administrators group (if that is what it's called in Debian) so that I may have full privileges. Thank you in advance. Your time and assistance is greatly appreciated. Peter

colin.p
Posts: 3
Joined: 2021-10-08 11:19
Location: Ottawa, Canada
Been thanked: 1 time

Re: User Privileges

#2 Post by colin.p »

You may want to peruse this page https://www.linuxtechi.com/things-to-do ... debian-11/ , especially point #2

It helped me to set up 11 and other than spending an inordinate amount of time to get a Canon printer working, it's humming right along.

peterbata
Posts: 7
Joined: 2021-10-25 13:48
Has thanked: 2 times

Re: User Privileges

#3 Post by peterbata »

Thank you for chiming in @colin.p I will refer to that link that you provided. I just tried doing something something as simple as uninstalling Solitaire. No can do! Of course I am getting the "you do not have permission to remove software" message. Wish me luck.

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: User Privileges

#4 Post by Hallvor »

GNU/Linux practices strict permissions and separation between user files and system files for security reasons.

Open the command line interface and type in

Code: Select all

su -
Enter your root password that you set during installation. (If you didn't set one, you have enabled sudo. You can then use sudo apt remove solitaire)

There should now be a # on the left side of the cursor.

Then

Code: Select all

apt remove solitaire
To search for an application named solitaire:

Code: Select all

apt search solitaire
You can also use apt to install the game

Code: Select all

apt install solitaire
Synaptic is a nice GUI of you don't want to work with the command line interface when installing or removing software.

Code: Select all

apt install synaptic
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

peterbata
Posts: 7
Joined: 2021-10-25 13:48
Has thanked: 2 times

Re: User Privileges

#5 Post by peterbata »

Thank you @Hallvor The privileges issue that I was referring to occurs when I am logged into the Debian Gnome desktop. Forgive me for not mentioning that in my original post. Even when I go to the User gui in settings I cannot unlock to make changes to my own account.

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: User Privileges

#6 Post by Hallvor »

GUIs can be unreliable. The command line interface always works. ;)

Is there anything wrong with the commands above?
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

peterbata
Posts: 7
Joined: 2021-10-25 13:48
Has thanked: 2 times

Re: User Privileges

#7 Post by peterbata »

Hallvor wrote: 2021-10-25 16:51 GUIs can be unreliable. The command line interface always works. ;)

Is there anything wrong with the commands above?
I have nothing against issuing commands from the command line. However, I do not seem to be getting very far as you can see from the test that I have pasted below:"

root@mail:~# apt remove solitaire
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package solitaire
root@mail:~#

That is about as far as I have been able to go

If I issue the apt search solitaire I am presented with this list:
root@mail:~# apt search solitaire
Sorting... Done
Full Text Search... Done
ace-of-penguins/stable 1.5~rc2-4 amd64
penguin-themed solitaire games

aisleriot/stable,now 1:3.22.9-1 amd64 [installed,automatic]
GNOME solitaire card game collection

freecell-solver-bin/stable 5.0.0-2+b1 amd64
Library for solving Freecell games

gnome-mahjongg/stable,now 1:3.38.3-1 amd64 [installed,automatic]
classic Eastern tile game for GNOME

jester/stable 1.0-14 amd64
board game similar to Othello

junior-games-card/stable 1.29 all
Debian Jr. Card Games

kajongg/stable 4:20.12.1-1 all
classical Mah Jongg game

kgames/stable 1.0-2.1 amd64
Venerable selection of Xaw-based games

kmahjongg/stable 4:20.12.1-1 amd64
mahjongg solitaire game

kpat/stable 4:20.12.1-1 amd64
solitaire card games

kshisen/stable 4:20.12.1-1 amd64
Shisen-Sho solitaire game

libfreecell-solver-dev/stable 5.0.0-2+b1 amd64
Library for solving Freecell games (Development files)

libfreecell-solver0/stable 5.0.0-2+b1 amd64
Library for solving Freecell games

mah-jong/stable 1.11-2+b2 amd64
Original Mah-Jong game

ncurses-examples/stable 6.2+20201114-2 amd64
test programs and examples for ncurses

peg-e/stable 1.2.8-1 amd64
peg elimination solitaire game

peg-solitaire/stable 2.2-2+b1 amd64
Board game for one player with pegs

pegsolitaire/stable 0.3-1 amd64
education game similar to Hi-Q

pysolfc/stable 2.6.4-3 all
collection of more than 1000 solitaire card games

pysolfc-cardsets/stable 2.0+dfsg2-2.1 all
additional card graphics for PysolFC

sgt-puzzles/stable 20191231.79a5378-3 amd64
Simon Tatham's Portable Puzzle Collection - 1-player puzzle games

xmahjongg/stable 3.7-5 amd64
tile-based solitaire game

xsol/stable 0.31-14+b1 amd64
Solitaire game for the X Window system

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: User Privileges

#8 Post by Hallvor »

It means the package solitaire isn't installed.

From apt search solitaire. This one?

Code: Select all

aisleriot/stable 1:3.22.9-1 amd64
  GNOME solitaire card game collection
Now, if it is part if the Gnome metapackage, it may want to remove your entire desktop...
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

peterbata
Posts: 7
Joined: 2021-10-25 13:48
Has thanked: 2 times

Re: User Privileges

#9 Post by peterbata »

Hallvor wrote: 2021-10-25 18:36 It means the package solitaire isn't installed.

From apt search solitaire. This one?

Code: Select all

aisleriot/stable 1:3.22.9-1 amd64
  GNOME solitaire card game collection
Now, if it is part if the Gnome metapackage, it may want to remove your entire desktop...
Yes, that is the one that appears to be installed by default. Please see desktop screenshots below:

https://i.postimg.cc/J4ZMQMPf/Solitaire ... Remove.jpg
https://i.postimg.cc/8zxdgdhJ/Solitaire ... -Error.jpg

And the error that you see is what I get whenever I attempt to install or uninstall an application

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: User Privileges

#10 Post by Hallvor »

1. Just remove it from the command line interface.

2. Gnome users: Does Gnome require sudo to remove software (from the GUI) now?
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

colin.p
Posts: 3
Joined: 2021-10-08 11:19
Location: Ottawa, Canada
Been thanked: 1 time

Re: User Privileges

#11 Post by colin.p »

Hallvor wrote: 2021-10-25 18:51
2. Gnome users: Does Gnome require sudo to remove software (from the GUI) now?
As far as I have seen (coming from a ubuntu background), it always has.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: User Privileges

#12 Post by sunrat »

colin.p wrote: 2021-10-25 21:24
Hallvor wrote: 2021-10-25 18:51
2. Gnome users: Does Gnome require sudo to remove software (from the GUI) now?
As far as I have seen (coming from a ubuntu background), it always has.
I think you missed the point of the question. sudo is just one means of getting elevated privileges. When launching a GUI application such as Synaptic, pkexec should pop up a password request to elevate privileges, not sudo.
I don't know much about Gnome though, don't like it at all.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply