You are not logged in.

#1 2011-10-06 18:01:25

ancrouter
Member
Registered: 2011-10-06
Posts: 13

[SOLVED] Is /opt empty by default?

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

#2 2011-10-06 18:05:19

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Is /opt empty by default?

/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

#3 2011-10-06 18:07:44

ancrouter
Member
Registered: 2011-10-06
Posts: 13

Re: [SOLVED] Is /opt empty by default?

This program is not in pacman repos and is also not in AUR. It is a toolchain for embedded development board.

Offline

#4 2011-10-06 18:10:49

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Is /opt empty by default?

ancrouter wrote:

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

#5 2011-10-06 18:10:55

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: [SOLVED] Is /opt empty by default?

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


My GitHub Page

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

#6 2011-10-06 18:18:45

ancrouter
Member
Registered: 2011-10-06
Posts: 13

Re: [SOLVED] Is /opt empty by default?

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

#7 2011-10-06 18:35:38

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: [SOLVED] Is /opt empty by default?

drwxr-xr-x   5 root root  4096 Oct  2 19:54 opt

There's /opt permissions


My GitHub Page

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

#8 2011-10-06 21:31:55

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED] Is /opt empty by default?

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

#9 2011-10-06 21:39:17

ancrouter
Member
Registered: 2011-10-06
Posts: 13

Re: [SOLVED] Is /opt empty by default?

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

Board footer

Powered by FluxBB