Tagged: fail to start, sudo, synaptic
- This topic has 44 replies, 7 voices, and was last updated Apr 29-9:37 pm by dukester.
-
AuthorPosts
-
April 27, 2023 at 1:14 pm #105535Member
dukester
::I would not blame ‘ssh’ which I used as an analogy of my (poor?) understanding of ‘sudo’.
Got it! Thx for clarifying!!
--
dukesterApril 27, 2023 at 5:53 pm #105552Member
dukester
::Another issue popped up – I think as a result of running:
sudo chown -Rc $USER:$USER $HOMESome things in Control Center will not launch now. Like:
system/Edit Config files
system/Set Date and Time
Maintenance/Boot Repair
Maintenance/Menu Editor
etcI was in the “wheel” group. How do I check if I still am?
--
dukesterApril 27, 2023 at 7:52 pm #105556Forum Admin
anticapitalista
::Debian does not have a ‘wheel’ group.
Where did you get it from and why?Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
April 27, 2023 at 8:09 pm #105557Member
dukester
::i must have had my freeBSD hat on when I wrote that. I just assumed that I had to be a member of an “admin” / “wheel” group or some such in order to have root privileges. I was simply trying to figure out why I could not launch those programs anymore. The first thing that came to mind was “permissions”.
--
dukesterApril 28, 2023 at 4:46 am #105564Member
sybok
::In order to be able to run programs with|requiring elevated privileges, you should be (‘root’ or) a member of ‘sudo’ (or you should have edited the ‘sudoers’ file).
The groups and their members are listed in ‘/etc/group’, to quickly get your username from it, you may simply grep it (run as a normal user):
grep $(whoami) /etc/groupSome of the items in the Control centre require elevated privileges.
If you did run e.g. ‘sudo’ in the past 10 or 15 minutes, then during this period, you need not to reenter the password as the elevated privileges have a timeout.
Could it be that you did not need to do password confirmation in the past and now you are surprised you have to?I doubt the recursive ‘chown’ command would affect that if called with correct values (perhaps, it’s the environment again).
You can test if there is any difference by running:
sudo echo "Normal: User [$USER] with home [$HOME]"; sudo -E echo "With Env: User [$USER] with home [$HOME]";
If both values of $USER and $HOME agree in the two variants, then I do not see any reason for the ‘chown’ to have messed up anything.PS: Once the thread is done, please ask an admin (via PM) to mark this thread as solved. If there are any other posts you created in the past and are resolved and not marked accordingly, please include them in your polite request.
April 28, 2023 at 7:46 am #105569MemberRJP
::Another issue popped up – I think as a result of running:
sudo chown -Rc $USER:$USER $HOMESome things in Control Center will not launch now. Like:
system/Edit Config files
system/Set Date and Time
Maintenance/Boot Repair
Maintenance/Menu Editor
etcIf that happens, the question is that who is whoami and who owns the files. Some checks:
whoami
pwd
find $HOME ! -user $USER -type f
ls -laRApril 28, 2023 at 8:58 am #105572Member
sybok
April 28, 2023 at 12:41 pm #105581Member
dukester
::sudo echo “Normal: User [$USER] with home [$HOME]”
Normal: User [dnormandin] with home [/home/dnormandin]sudo -E echo “with Env: User [$USER] with home [$HOME]”
with Env: User [dnormandin] with home [/home/dnormandin]grep $(whoami) /etc/group
lp:x:7:dnormandin
dialout:x:20:dnormandin
cdrom:x:24:dnormandin
floppy:x:25:dnormandin
sudo:x:27:dnormandin
audio:x:29:dnormandin,pulse
dip:x:30:dnormandin
video:x:44:dnormandin
plugdev:x:46:dnormandin
users:x:100:dnormandin
netdev:x:109:dnormandin
lpadmin:x:112:dnormandin
scanner:x:113:saned,dnormandin
vboxsf:x:114:dnormandin
dnormandin:x:1000:Could it be that you did not need to do password confirmation in the past and now you are surprised you have to?
I always needed to type in my password in the past. I had a “password respite period” afterwards.
I did `sudo visudo’ when I first installed antiX. Everything had been working just dandy.
Prior to this issue, I never had trouble running anything in Control Centre.PS: Once the thread is done, please ask an admin (via PM) to mark this thread as solved. If there are any other posts you created in the past and are resolved and not marked accordingly, please include them in your polite request.
Roger wilco! 🙂
--
dukesterApril 28, 2023 at 12:46 pm #105582Member
dukester
::whoami
dnormandinpwd
/home/dnormandinfind $HOME ! -user $USER -type f
/home/dnormandin/.config/dconf/userls -laR | less
Returns for example ..
drwxr-xr-x 76 dnormandin dnormandin 4096 Apr 18 11:46 .config
-rw-r–r– 1 dnormandin dnormandin 3907 Mar 23 2021 .conkyrc
-rw-r–r– 1 dnormandin dnormandin 2490 Oct 10 2020 .conkyrc-lua
-rw-r–r– 1 dnormandin dnormandin 266 Dec 15 2021 .conkySpectrSeems okay!
--
dukesterApril 28, 2023 at 2:32 pm #105595MemberRJP
::find $HOME ! -user $USER -type f
/home/dnormandin/.config/dconf/userWhat about
ls -laR /home/dnormandin/.config/dconf/userApril 28, 2023 at 3:23 pm #105601Member
dukester
::ls -laR /home/dnormandin/.config/dconf/user
-rw-r–r– 1 root root 4229 Apr 27 20:26 /home/dnormandin/.config/dconf/user
Is that bad?
--
dukesterApril 28, 2023 at 4:31 pm #105610MemberRJP
::ls -laR /home/dnormandin/.config/dconf/user
-rw-r–r– 1 root root 4229 Apr 27 20:26 /home/dnormandin/.config/dconf/user
Is that bad?
Maybe it can prevent some functions if regular user has no privileges.
https://en.wikipedia.org/wiki/Dconf
PolicyKit integration is planned so that a normal user may temporarily gain the ability to, for example, write to the keys under /system/ (or /default/). This means that programs like the GNOME Display Manager configuration utility no longer have to be run as root.
April 28, 2023 at 5:32 pm #105620Member
dukester
::Thx for the link! On my system only the empty directory /etc/dconf/db/ exists.
I’m wondering why this `dconf’ thing would be an issue all of a sudden. I sure never messed with it.
What a PITA this is getting to be. Something is always breaking it seems. Are you experiencing the same thing?--
dukesterApril 28, 2023 at 5:43 pm #105621Forum Admin
anticapitalista
::Something is always breaking it seems. Are you experiencing the same thing?
No.
As I posted, you have probably installed something outside the buster repos and now you’re seeing issues.
You also made changes by adding yourself to the wheel group that almost certainly broke things.Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
April 28, 2023 at 5:49 pm #105622Member
dukester
::You also made changes by adding yourself to the wheel group that almost certainly broke things.
I did no such thing!! Look up-thread where I do a `grep $(whoami) /etc/group’ !!
you have probably installed something outside the buster repos and now you’re seeing issues.
Maybe so, but why would it take all this time to “go south” on me? I haven’t installed anything in some time.
--
dukester -
AuthorPosts
- You must be logged in to reply to this topic.