Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XDG_CACHE_HOME & wrong kdm umask ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lgael
n00b
n00b


Joined: 06 Aug 2011
Posts: 5

PostPosted: Thu May 08, 2014 8:59 pm    Post subject: XDG_CACHE_HOME & wrong kdm umask ? Reply with quote

Hello,

I've installed gentoo on a ssd disk, so I use a tmpfs for /tmp and defined also XDG_CACHE_HOME="/tmp/.cache-xdg". But at launch, firefox cannot create my profile because of kdm umask :
Code:

strace -ff firefox-bin 2>&1 | grep " = -1 EACCES"
mkdir("/tmp/.cache-xdg/mozilla", 0700)  = -1 EACCES (Permission denied)

Code:

cat /etc/fstab
tmpfs           /tmp            tmpfs           defaults,noatime,nodiratime,size=3G 0 0

Code:

cat /etc/env.d/30xdg-data-local
XDG_DATA_DIRS="/usr/local/share"
COLON_SEPARATED="XDG_DATA_DIRS XDG_CONFIG_DIRS"
XDG_CACHE_HOME="/tmp/.cache-xdg"

Code:

ls -al /tmp/
drwxr-xr-x  3 kdm     kdm       60  8 mai   22:13 .cache-xdg


Of course if I chmod a+x /tmp/.cache-xdg, firefox doesn't complain anymore... until next reboot.
Do you know where can I change xdm/kdm umask to allow writable cache ?

I used an hardened stage3 to install my system but switched to gentoo-sources + standard install when I realized that there is no desktop+hardened profile... Maybe this is a side effect of that ?

Thank you
Back to top
View user's profile Send private message
lgael
n00b
n00b


Joined: 06 Aug 2011
Posts: 5

PostPosted: Sun May 11, 2014 11:50 am    Post subject: Reply with quote

In case someone have the same issue, I resolved it by adding in ~/.bash_profile (for each users) :
Code:

export XDG_CACHE_HOME=/tmp/<user>/.cache
if [ ! -f $XDG_CACHE_HOME ];
then
    mkdir -p -m 0700 $XDG_CACHE_HOME
fi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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