You are not logged in.
Pages: 1
When I try to startx as non-root, it keeps on displaying message like xauth:timeout in locking authority file /home/hello/.Xauthority
groups of hello are wheel users.
ls -lah ~ gives following output:
#ls -lah ~
drwxr-xr-x 2 root root 4.0K Nov 20 00:26 .
drwxr-xr-x 4 root root 4.0K Nov 19 15:04 ..
-rw--------- 1 root root 0 Nov 20 00:26 .Xauthority
-rw-r--r-- 1 root root 65 Nov 19 21:30 .bash_profile
-rw-r--r-- 1 root root 310 Nov 19 22:02 .xinitrc
After searching about this issue, I came to know it's about permission and right. I tried chmod and chown but it didn't work out. My method might be wrong, can someone guide me to solve this issue?
And other thing, when I use xinit. X seems to start displaying message box with following message.
Call to Inusertemp failed (temporary directories full?). Check your installation.
Last edited by Habi (2013-11-20 15:04:53)
Offline
What's the output when you run that command as hello? You've run it as root and so it is listing root's home directory.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Is /home/ on a separate partition? If so, what is the filesystem, and how is it mounted? This does sound like a permissions/ownership issue on either /home/ or /home/hello.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
After searching about this issue, I came to know it's about permission and right. I tried chmod and chown but it didn't work out. My method might be wrong, can someone guide me to solve this issue?
What exactly happens? Can't you change the ownership or does changing the ownership does not change a thing?
You have to chown them as root to your normal user of course, then try again to execute stuff, as non-root.
Offline
Is /home/ on a separate partition? If so, what is the filesystem, and how is it mounted? This does sound like a permissions/ownership issue on either /home/ or /home/hello.
Ya, Tribly. I have separate partition for home in /dev/sda3. It has ext4 filesystem. I've mounted it by editing /etc/fstab file.
[Device] [Mount Point] [File System Type] [Options] [Dump] [Pass]
dev/sda3 /home ext4 defaults,noatime 0 0
Last edited by Habi (2013-11-20 05:30:07)
Offline
What exactly happens? Can't you change the ownership or does changing the ownership does not change a thing?
You have to chown them as root to your normal user of course, then try again to execute stuff, as non-root.
Even after changing ownership using chown, that particular error keeps on displaying. Accidently, I deleted that .Xauthority file. So, I've copied it from /root to ~.
Offline
IIRC, .Xauthority will be automatically recreated if it's not present. Just delete it and startx.
Offline
IIRC, .Xauthority will be automatically recreated if it's not present. Just delete it and startx.
I tried that but it didn't create .Xauthority file. Moreover, it displayed message like:
Call to Inusertemp failed (temporary directories full?). Check your installation.
Offline
What is the output of "mount" and "df -h"?
Offline
Scimmia wrote:IIRC, .Xauthority will be automatically recreated if it's not present. Just delete it and startx.
I tried that but it didn't create .Xauthority file. Moreover, it displayed message like:
Call to Inusertemp failed (temporary directories full?). Check your installation.
It doen't make a different afaik, but you could just "touch .Xauthority" in your home folder, so no need to fiddle with the chown of the .Xauthority you copied from root.
Offline
What is the output of "mount" and "df -h"?
output of mount:
proc on /proc type proc (rw, nosuid, nodev, noexec, relatime)
sys on /sys type sysfs (rw, nosuid, nodev, noexec, relatime)
dev on /dev type devtmpfs (rw, nosuid, relatime, size=2986736k, nr_inodes=746684,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda2 on / type ext4 (rw,noatime,data=ordered)
securityfs on /sys/kernel/security teype securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cproup/systemd type cgroup (rw,nosuid,nodev,noexe.,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroupsagent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=31,pgrp-1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /boot type autofs (rw,relatime,fd=42,pgrp-1,timeout=300,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
tmpfs on /tmp type tmpfs (rw)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda4 on /var type ext4 (rw,noatime,data=ordered)
/dev/sda5 on /data type ext4 (rw,noatime,data=ordered)
/dev/sda3 on /home type ext4 (rw,noatime,data=ordered)
/dev/sda1 on /boot type vfat (rw,noatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)Output of df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 50 G 1.7G 45G 4% /
dev 2.9G 0 2.9G 0% /dev
run 2.9G 480K 2.9G 1% /run
tmpfs 2.9G 0 2.9G 0% /dev/shm
tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup
/dev/sda1 1022M 23M 1000M 3% /boot
tmpfs 2.9G 0 2.9G 0% /tmp
/dev/sda4 9.8G 606M 8.7G 7% /var
/dev/sda5 9.8G 23M 9.2G 1% /data
/dev/sda3 372G 67M 353G 1% /homeLast edited by Habi (2013-11-20 13:12:51)
Offline
Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code
Offline
Solved? Care to share?
Offline
Solved? Care to share?
Offline
I've had the same problem..But `chown`ing my user directory using "chown username /home/yourdirectory " worked. Found this solution on the following page :http://www.geekvenue.net/chucktips/jaso … index_html
Last edited by dopeamine (2013-11-22 08:46:01)
Offline
Pages: 1