I'm trying to copy a file from my homedir to /usr. How do I setup the permissions to allow this?
$ chmod 777 KeePass-2.14.zip
$ cp KeePass-2.14.zip /usr/keepass/
cp: cannot create regular file `/usr/keepass/KeePass-2.14.zip': Permission denied
$ sudo cp KeePass-2.14.zip /usr/keepass/
cp: cannot stat `KeePass-2.14.zip': Permission denied
$
/etc/sudoers
that allows your user tosudo
? It should be something likephunehehe ALL=(ALL) ALL
... – phunehehe Apr 05 '11 at 15:49/usr
? Seems like an unusual thing to do. If you are trying to unpack for an install, that is the wrong place to put it in. Something like/usr/local/src
would be better. At least, that is what I use. Is there no binary package available forkeepass
for your OS? – Faheem Mitha Apr 05 '11 at 16:17/usr/local/src
is customary, I believe. The FHS says "/usr/local/src: Local source code". See http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY – Faheem Mitha Apr 05 '11 at 20:27