Talk:New Plugger How To
From PlugWiki
sudo
I moved the rootfs supplied with a recently delivered SheevaPlug to a SDHC card and created a new userid. When I tried to get sudo working, I got the error sudo: must be setuid root. It appears the permissions on /usr/bin/sudo were incorrect.
root@debian:~# cd /usr/bin root@debian:/usr/bin# ls -l sudo -rwxr-xr-x 1 root root 114976 Nov 15 2008 sudo root@debian:/usr/bin# chmod +s sudo root@debian:/usr/bin# ls -l sudo -rwsr-sr-x 1 root root 114976 Nov 15 2008 sudo
Has anyone else seen this problem?
/tmp
My /tmp was set to 755 permissions. A quick check of my x86 Ubuntu Hardy box shows 1777 permissions. Any idea why the strange permissions on the plug? It caused problems with mod_mono shared memory.
Apt Dirs
My solution is: 1. nano /etc/rc.local
1a. comment out "#mkdir -p /var/cache/apt/archives/partial"
1b. put /etc/mkaptdirs
2. nano /etc/mkaptdirs
2a. put this there:
#!/bin/bash if [ -d "/var/cache/apt/archives/" ]; then if [ -d "/var/cache/apt/archives/partial" ]; then #ok else mkdir /var/cache/apt/archives/partial fi else mkdir -p /var/cache/apt/archives/partial fi
2b. chmod 755 /etc/mkaptdirs
3. Ready - will make dir only in not already exist
