You are not logged in.
Pages: 1
Hello,
i had some issue installing a third party program. I downloaded it as binary, the only thing to do was to place it to /opt. It was a tar.bz2 file. it contents was opt folder, then PorgramName folder and so on. so i issued:
sudo tar xjvf archive.tar.bz2
while being in the root(/) folder. everything looked like to run smoothly, but after that i wanted to check /opt and it had 0700 permissions and owner 1003.... wtf? i changed user and group to root and permissions to 755 and opened the /opt directory and the only contents in it was the content from the archive. Is /opt by default empty or did i screw something up? System seems to work normal. I really don't remember what was in /opt nor what permissions did it have before i issued that command. Could this way off unpacking the archive break something?
Last edited by ancrouter (2011-10-06 21:43:52)
Offline
/opt will be empty unless you install something into it e.g. Java
https://wiki.archlinux.org/index.php/Ar … _Standards
Are you saying you installed the program without using pacman? Using a PKGBUILD is the way to go here.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
This program is not in pacman repos and is also not in AUR. It is a toolchain for embedded development board.
Offline
This program is not in pacman repos and is also not in AUR. It is a toolchain for embedded development board.
You are welcome to submit a new package to the AUR at anytime.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
ancrouter:
Then write a PKGBUILD, it's not hard and it will be very useful if you want to remove or upgrade that thing.
PS: you can also request a PKGBUILD
Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.
Offline
OK, i will try to make PKGBUILD. But can you guys post me permission, owner and group of your /opt directory? I still have a feeling that something gone wrong. Why it had 0700, owner "1003" and group "users"?
Offline
drwxr-xr-x 5 root root 4096 Oct 2 19:54 opt
There's /opt permissions
Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.
Offline
Incidentally, I don't understand what is up with directories having a number instead of an owner. e.g. I have
drwxr-xr-x 36 30123 18830 1808 Aug 19 18:31 root
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
i've been googling around and found the cause why tar changes ownership of files and folders. If i extract tarball as root, files and directories will have ownership of user who made tarball. if that dir exists, it will just change permissions and ownership - that was my case.
Offline
Pages: 1