Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 13453  / 2 Years ago, fri, june 24, 2022, 3:41:07

I am trying to prevent the guest user from accessing software-center (I know it can't install anything, but I don't even want it to browse)



The file is owned by root and in group root.



I run: sudo chmod o= /usr/bin/software-center



Afterwards I run ls -l and get the following output:
lrwxrwxrwx 1 root root 40 Sep 10 14:28 /usr/bin/software-center -> ../share software- center/software-center



The first part of the output indicates chmod didn't do anything and the second part I don't understand.


More From » chmod

 Answers
2

If you only want root user to have access to the software center, you will need to change the 'other' access to the file /usr/share/software-center



sudo chmod 750 /usr/share/software-center


If you want to restore access to software center for your user you can change the group for the file /usr/share/software-center to your group:



sudo chown root:username /usr/share/software-center


this will result in only root and you having access.



If you want other users to also have access, you can make a group for this purpose, eg 'install' and make the group access 'install', and add any users you want to give access to this group.



As pointed out, /usr/bin/software-center is a link, not the actual file so you can't change its permissions


[#34367] Saturday, June 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fulerio

Total Points: 172
Total Questions: 124
Total Answers: 109

Location: Hungary
Member since Thu, Aug 6, 2020
4 Years ago
fulerio questions
;