Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Some Programs cannot write in /tmp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bifi.ftw
n00b
n00b


Joined: 05 Nov 2015
Posts: 24

PostPosted: Fri Feb 05, 2016 12:33 pm    Post subject: [solved] Some Programs cannot write in /tmp Reply with quote

Greetings everyone,

Gentoo runs on an SSD and therefore I set it up as suggested in the corresponding wiki entry:
https://wiki.gentoo.org/wiki/SSD#tmpfs

/etc/fstab
https://bpaste.net/show/41f7abbfb227

/etc/portage/make.conf
https://bpaste.net/show/da5175db8e99

/etc/profile.d/xdg_cache_home.sh
https://bpaste.net/show/d594660fa350

The system runs fine but starting qutebrowser promts this error
"Error while initializing [Errno 13] Permission denied: '/tmp//.cache/qutebrowser"
Terminal:
https://bpaste.net/show/3af29c02fb83

I think this is related to my other post, where firefox is unable to start:
https://forums.gentoo.org/viewtopic-p-7868140.html#7868140


Permissions of /tmp
drwxrwxrwt 13 root root 280 Feb 5 13:15 tmp

As a regular user I can create folders and files inside /tmp and delete them.


Also it is noteworthy that qutebrowser and firefox work when run as root from a terminal.


Thankful for any hints regarding this problem.

Regards,
Bifi


Last edited by bifi.ftw on Thu Feb 11, 2016 5:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Fri Feb 05, 2016 2:31 pm    Post subject: Reply with quote

Code:
ASUS-G75VW roman # grep tmpfs /etc/fstab
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
shm         /dev/shm   tmpfs         nodev,nosuid,noexec      0 0
none              /tmp       tmpfs              nofail,nodev,defaults   0 0
#portage tmpfs according to https://wiki.gentoo.org/index.php?title=Portage_TMPDIR_on_tmpfs&redirect=no
none          /var/tmp/portage tmpfs   size=8G,noatime,nofail   0 0
none                    /home/roman/Downloads tmpfs size=8G,noatime,nofail  0 0
ASUS-G75VW roman # mount|grep tmpfs
none on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=2048924,mode=755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
none on /tmp type tmpfs (rw,nodev,relatime)
none on /var/tmp/portage type tmpfs (rw,noatime,size=8388608k)
none on /home/roman/Downloads type tmpfs (rw,noatime,size=8388608k)


Quote:

tmpfs /tmp tmpfs noatime,size=8G 0 0


well mine differs from yuors. yours above, mine below.

Quote:
none /tmp tmpfs nofail,nodev,defaults 0 0


I also use ssd for some years now. You may reuse my example or look up the differences in the man-pages and adapt yours.

..

afaik those browers now polute the user directory instead of tmp

is is here something like /home/USER/.local (a subfolder of that)
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Feb 05, 2016 3:43 pm    Post subject: Reply with quote

${USR} is wrong.
Back to top
View user's profile Send private message
bifi.ftw
n00b
n00b


Joined: 05 Nov 2015
Posts: 24

PostPosted: Fri Feb 05, 2016 9:25 pm    Post subject: Reply with quote

tw04l124:

Looking through the man page nothing seems wrong with my fstab setup.

Quote:

afaik those browers now polute the user directory instead of tmp

is is here something like /home/USER/.local (a subfolder of that)


I have the folder /home/bifi/.local/share which also has a "qutebrowser" which looks like it could have temporary files inside.



Ant P.:

Quote:

${USR} is wrong.


I guess you mean in '/etc/profile.d/xdg_cache_home.sh ', but how do I fix it?
Back to top
View user's profile Send private message
bifi.ftw
n00b
n00b


Joined: 05 Nov 2015
Posts: 24

PostPosted: Thu Feb 11, 2016 5:28 pm    Post subject: Reply with quote

Changed %{USR} to ${USER} in /etc/profile.d/xdg_cache_home.sh

That fixed it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum