You are not logged in.
Hi all,
I had to reinstall everthing on the computer via
pacman -S $(pacman -Qnq)then I move a few files back to their original place such as
/etc/shadow and /etc/passwd now i'm having various problems
1) I can't run
systemctlas a normal user anymore; I have to sudo into it. I get this error message:
Failed to get D-Bus connection: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.2) libreoffice wont run from my regular user account. I get this error message:
The application cannot be started. User installation could not be completedI tried uninstalling then reinstalling libreoffice. Didn't fix it.
Any ideas?
Thanks
Alan
Last edited by beitme (2014-02-21 10:53:34)
Offline
What was the issue that caused you to reinstall the packages?
What do the the "id" and "groups" command return?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
That command `pacman -S $(pacman -Qnq)` is a bad idea. If for some reason (I'm also curious what the original reason was) you really need to do something like this you should use `pacman -S $(pacman -Qneq)`. As it is you've now changed every single package to explicitly installed. This wont directly cause any malfunctioning, but as soon as you remove anything you'll have left-over junk you don't need or want.
EDIT: my appolgies - the wiki is correct. And I'm considering posting in the "oh nice" thread; I didn't know pacman -S handled this that well.
Last edited by Trilby (2014-01-19 16:10:48)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
I reinstalled everything because I accidentally changed the permissions recursively on the /usr folder.
I reinstalled via 'pacman -S $(pacman -Qnq) because the wiki says this:
Q: How do I reinstall all packages, retaining information on whether something was explicitly installed or as a dependency?
A: To reinstall all the native packages: pacman -S $(pacman -Qnq) (the -S option preserves the installation reason by default).
You will then need to reinstall all the foreign packages, which can be listed with pacman -Qmq.
so the wiki is wrong? it doesn't retain dependency information?
oh well, I don't mind the junk so much as not having an operating system.
Last edited by beitme (2014-01-19 13:40:58)
Offline
What are the answers to our questions?
Are the permissions on /usr correct now?
The libreoffice error seems like it could be permissions related? Are your permissions to your homedir ok?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
I had to get to my linux machine to check the results of 'id' and 'groups'
1) from 'id' I get :
uid=1000 gid=1000 groups=92,10002) from 'groups' I get:
92 1000how do I know if the persmissions are correct now? everything is back to 655, so I suppose so. And I'm able to use 'sudo' again, which before I couldn't do after the inital problem of changing permissions
Last edited by beitme (2014-01-19 13:50:21)
Offline
I'm also getting this error when runnine 'exaile' (the audio player)
Traceback (most recent call last):
File "/usr/lib/exaile/exaile.py", line 68, in <module>
main()
File "/usr/lib/exaile/exaile.py", line 65, in main
exaile = main.Exaile()
File "/usr/lib/exaile/xl/main.py", line 129, in __init__
exit = xldbus.check_exit(self.options, self.args)
File "/usr/lib/exaile/xl/xldbus.py", line 69, in check_exit
bus = dbus.SessionBus()
File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 211, in __new__
mainloop=mainloop)
File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 100, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 122, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.Offline
Something isn't right. Why are the gids being displayed and not the group names I wonder?
When you say you copied a few files which ones were they? What exactly have you done?
What are the permissions on the group file? for example,
$ ls -l /etc/group
-rw-r--r-- 1 root root 753 Jan 19 13:16 /etc/groupAll men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
I reinstalled via 'pacman -S $(pacman -Qnq) because the wiki says this:
Q: How do I reinstall all packages, retaining information on whether something was explicitly installed or as a dependency?
A: To reinstall all the native packages: pacman -S $(pacman -Qnq) (the -S option preserves the installation reason by default).
You will then need to reinstall all the foreign packages, which can be listed with pacman -Qmq.so the wiki is wrong? it doesn't retain dependency information?
The wiki is correct. "pacman -Qqn" returns the list of currently installed repo packages. Re-installing them with "pacman -S $(pacman -Qqn) ..." preserves their install reason (unless the command includes "--asdeps" or "--asexplicit"). What you should not do is save the list generated by "pacman -Qqn" and then install that list on a new system because the new system does not know the install reasons. All packages would be explicitly installed in that case, which will lead to a lot of clutter.
If you want to re-install the entire system from scratch, you should first create two package lists:
pacman -Qqne > explicit_repo_pkgs.txt
pacman -Qqme > explicit_foreign_pkgs.txtThen on the new system you can run
pacman -S - < explicit_repo_pkgs.txtto reinstall the repo packages. This will recreate the previous hierarchy of install reasons. Re-installation of the foreign packages will depend on their location.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Since the OP is not willing to tell the whole story, I will clue you all in. There is another thread where the OP said that he/she decided to try and fix a problem by doing 'chmod -R 777 /usr'. I told him/her that it might be possible to get the machine in asomewhat functioning state if all the packages were reinstalled. (Don't worry Trilby, I warned about dpendency issues... though I'm not sure that this was understood)
So now that the OP has reinstalled every single package, more issues are popping up. In the last thread I mentioned reinstating /etc/{group,shadow,passwd} from the backups /etc/{group-,shadow-,passwd-}... though I think I forgot gshadow. But from the OP's post here, it would seem that he/she didn't even do /etc/group...
That is why th OP is having problems.
Offline
I am willing to tell the whole story, I'm just not sure what would be relevant to state at an early stage of investigation and what should be withheld till later. There isn't much else to tell from what I said here except that the inital mistake was that I changed the permission on the /usr directory to 777 recursively. As for the files I moved these were:
/etc/shadow- to /etc/shadow
/etc/gshadow- to /etc/gshadow
/etc/passwd- to /etc/passwd
/etc/group- to /etc/group
Wonderwoofy, thanks for the help in the other thread. But here it doesn't seem you are being very respectful. I did in fact move those files. Why are you so quick to judge? And yes I got the warning about dependencies. I just want my system running the way it was and other attempts were ineffective at fixing the problem. So I reinstalled everything. I appreciate all the help given in the linux and arch community. I cannot respond so quickly to messages on this board.
Offline
Sorry about the double post. I must have hit the button twice or something. That' why I have removed the contents.
Last edited by loafer (2014-01-19 20:28:50)
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
You haven't answered my question at all. You are drip feeding information
Please show us the permissions on the four files listed above together with the contents of passwd and group.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Sorry beitme. It just really bothers me when people ask for help yet fail to give the whole story of the situation. It bothers me even more when people are asked to give the whole story and still fail to do so. If you want help, then you need to be forthcoming about your situation and how you got there. Considering that you are stuck in how to go about fixing this issue, what you think is or is not relevant might not actually be the case. In your other thread you did a fine job explaining what you had done to cause your situation, so it was easier to offer you help.
Offline
permissions are as follows:
-rw------- 1 0 0 647 Oct 21 04:30 /etc/group
-rw------- 1 0 0 614 Jan 19 17:10 /etc/shadow
-rw------- 1 0 0 534 Oct 21 04:30 /etc/gshadow
-rw------- 1 0 0 799 Oct 21 04:30 /etc/passwdcontents of group are:
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin
adm:x:4:root,daemon
tty:x:5:
disk:x:6:root,xbmc
lp:x:7:daemon
mem:x:8:
kmem:x:9:
wheel:x:10:root
ftp:x:11:
mail:x:12:
uucp:x:14:
log:x:19:root
utmp:x:20:
locate:x:21:
rfkill:x:24:
smmsp:x:25:
http:x:33:
games:x:50:
lock:x:54:
uuidd:x:68:
dbus:x:81:
network:x:90:xbmc
video:x:91:xbmc
audio:x:92:beitme,xbmc
optical:x:93:xbmc
floppy:x:94:
storage:x:95:xbmc
scanner:x:96:
power:x:98:xbmc
nobody:x:99:
users:x:100:
systemd-journal:x:190:
ntp:x:87:
polkitd:x:102:
beitme:x:1000:
lightdm:x:620:
usbmux:x:140:
avahi:x:84:
transmission:x:169:
rtkit:x:133:
xbmc:x:1001:xbmccontents of passwd are:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
uuidd:x:68:68:uuidd:/:/sbin/nologin
dbus:x:81:81:dbus:/:/sbin/nologin
nobody:x:99:99:nobody:/:/bin/false
ntp:x:87:87:Network Time Protocol:/var/lib/ntp:/bin/false
polkitd:x:102:102:Policy Kit Daemon:/:/bin/false
beitme:x:1000:1000::/home/beitme:/bin/bash
lightdm:x:620:620:Light Display Manager:/var/lib/lightdm:/sbin/nologin
usbmux:x:140:140:usbmux user:/:/sbin/nologin
avahi:x:84:84:avahi:/:/bin/false
transmission:x:169:169:Transmission BitTorrent Client:/var/lib/transmission:/bin/false
rtkit:x:133:133:RealtimeKit:/proc:/sbin/nologin
xbmc:x:1001:1001::/var/lib/xbmc:/bin/bashthanks
Offline
anybody know what I should do about this?
Offline
fixed it!
changed the permissions of [shadow, gshadow, group, passwd] to 777.
all works well now.
Offline
You may want to take another look at the permissions:
root@work ~# ls -al /etc/{gshadow,shadow,group,passwd}*
-rw-r--r-- 1 root root 636 Feb 7 21:59 /etc/group
-rw------- 1 root root 624 Feb 7 21:55 /etc/group-
-rw------- 1 root root 520 Feb 7 21:59 /etc/gshadow
-rw------- 1 root root 511 Feb 7 21:55 /etc/gshadow-
-rw-r--r-- 1 root root 579 Oct 13 20:29 /etc/passwd
-rw------- 1 root root 627 Oct 13 20:20 /etc/passwd-
-rw------- 1 root root 507 Oct 13 20:29 /etc/shadow
-rw------- 1 root root 534 Oct 13 20:20 /etc/shadow-What you've done has significantly reduced the security of your system.
Offline
fixed it!
changed the permissions of [shadow, gshadow, group, passwd] to 777.
all works well now.
It looks like you haven't learned much about permissions and security yet do you?
The permissions should be 644 for some and 600 for the others, not 777.
Last edited by Neburski (2014-02-21 12:11:23)
Offline