You are not logged in.
Pages: 1
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
so - what are the permissions of your scripts? (ls -l /path/to/script)
Offline
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 packages • Zsh and other configs
Offline
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
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
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 packages • Zsh and other configs
Offline
wooooow what an easy solution.
thank you!
Offline
Pages: 1