I have a freshly installed Ubuntu system however despite doing the following command lines to add the one and only user "home" to the sudo group I cannot install software via the snap store. Can anyone please advise?
home@home:~$ sudo usermod -aG sudo home
[sudo] password for home:
home@home:~$
home@home:~$ sudo whoami
[sudo] password for home:
root
home@home:~$
LOL I tried doing the same command with adm in place of sudo and it wont install ffmpeg or gimp or even tell me I am not allowed to install it. However when I went to install a mp3 splitting program it stills says I cant install that.
home@home:~$ whoami
home
home@home:~$ cd ~
home@home:~$ ls -lt snap
total 4
drwxr-xr-x 4 home home 4096 Mar 2 17:57 snap-store
home@home:~$ ls -lt ~/snap/
sudo snap install gimp has started the download, this is interesting, it had asked me to do it via sudo. I am not entirely clear on the point of putting home user into the sudo group if you still have to type sudo and put in the admin password too??
Now when I go to the site Reddit when I go to log in it instantly logs me out, I am starting to think this latest Ubuntu has some significant issues going on.
On another note, I just tried to open up gparted which I installed via the terminal and it wont run. I used GRUB to install the bootloader however I think its running MBR on here now and now the newer type of bootloader GPT, I was in windows and realised since the install I cant access the other hdd I have. How do I correct this?
about sudo, it's normal behavior.
sudo is a framework that let your regular user to perform tasks that needs super powers.
If you add a user inside sudo group, it will only allow your user to use sudo framework.
It is normal that in both cases, it asked for a password once you are doing sudo something
If you need a user to have all privileges without using sudo, you can try adding it to group root that I strongly not advise.
On ubuntu and ubuntu like systems, the root account is disabled by default for security and stability reasons. Reason why, the best and most secure way is to use a regular user like yours, that will use the sudo framework to perform administrative tasks like snap install or manage partitions with gparted.
Just because you are in the sudo group, does not mean that programs automatically run with sudo (i.e. root) privelages. Being in the sudo group allows you to type
sudo some_program
You are basically saying "Run this program with root privelages, I am allowed to tell you to do this".
This is by design. This is how it is meant to work.
Ok but still, why if I have installed Ubuntu with just one account, why doesn't it have the ability to install programmes??? This does not make any sense. Mind you, the matter is cleared now as I installed 20.04 which works properly. I do have another weird graphics issue, on another thread which I would be grateful for input on.