You are not logged in.

#1 2009-12-09 16:58:21

aaron.kilbride
Member
Registered: 2009-08-25
Posts: 65

tmpfs permission denied

i put a tmpfs script entry in my /etc/rc.local and /etc/rc.local.shutdown but i get a permission denied error on every boot and shutdown.... did i miss something?

Offline

#2 2009-12-09 19:58:55

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: tmpfs permission denied

so - what are the permissions of your scripts? (ls -l /path/to/script)

Offline

#3 2009-12-09 20:03:48

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: tmpfs permission denied

Post the script... could be that you need to add your user to sudo allowing whatever is inside the script.  I suspect you'll need mount if you're doing the firefox tmpscript I posted the wiki...

Add the following to /etc/sudoers (use visudo)

username  ALL=NOPASSWD: /bin/mount

Last edited by graysky (2009-12-09 20:06:01)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2009-12-11 06:18:33

aaron.kilbride
Member
Registered: 2009-08-25
Posts: 65

Re: tmpfs permission denied

mmk here is the script

#!/bin/bash
# Change this to match your correct profile
PROFILE="3kvhmq6t.default"

cd "${HOME}/.mozilla/firefox"
if test -z "$(mount | grep -F "${HOME}/.mozilla/firefox/${PROFILE}" )"
then
    mount "${HOME}/.mozilla/firefox/${PROFILE}"
fi

if test -f "${PROFILE}/.unpacked"
then
    rsync -av --delete --exclude .unpacked ./"$PROFILE"/ ./profile/
else
    rsync -av ./profile/ ./"$PROFILE"/
    touch "${PROFILE}/.unpacked"
fi

exit

and i added that line to my sudoers file but to no avail  i still get permission denied.
i put the script in a hidden .scripts folder on my home directory... could that have something to do with the problem?
i also have this line in
rc.local and rc.local.shutdown

su aaron -c /root/home/aaron/.scripts/tmpfs_firefox.sh

perbh wrote:

so - what are the permissions of your scripts? (ls -l /path/to/script)

when i run ls -l i get

[aaron@Arch ~]$ ls -l ~/.scripts/tmpfs_firefox.sh
-rwxr-xr-x 1 aaron users 444 2009-12-03 12:11 /home/aaron/.scripts/tmpfs_firefox.sh

any suggestions?

Last edited by aaron.kilbride (2009-12-11 06:24:14)

Offline

#5 2009-12-11 11:24:26

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: tmpfs permission denied

aaron.kilbride wrote:

su aaron -c /root/home/aaron/.scripts/tmpfs_firefox.sh

Fix that... you're trying to call it from the wrong dir:

su aaron -c /home/aaron/.scripts/tmpfs_firefox.sh

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2009-12-11 17:06:11

aaron.kilbride
Member
Registered: 2009-08-25
Posts: 65

Re: tmpfs permission denied

wooooow what an easy solution.
thank you!

Offline

Board footer

Powered by FluxBB