Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Owner of symbolic link should be the same owner of the extracted directory #21

Open
khuongdp opened this issue May 14, 2012 · 4 comments

Comments

@khuongdp
Copy link

No description provided.

@bryanwb
Copy link
Owner

bryanwb commented May 22, 2012

is that possible? every time i create a symbolic link it is owned by root, whether or not

@khuongdb, what OS and distro are you using?

@bryanwb bryanwb closed this as completed May 22, 2012
@bryanwb bryanwb reopened this May 22, 2012
@khuongdp
Copy link
Author

Running RHEL 6.2 x86_64. The same here the symbolic link is owned by root. Maybe combine it with lchown

When i run this I expect the link to be owned by 'user1'

ark "app" do
url "http://someurl"
version "1.0"
prefix_root "/pack"
home_dir "/pack/default"
owner 'user1'
action :install
end

To solve the problem I just run a ruby_block after this to chown the link.

@bryanwb
Copy link
Owner

bryanwb commented May 23, 2012

what problem does it cause that the link is owned by root? please help me understand. I don't see the lchown command on my rhel 6.2 system. what package provides it?

@khuongdp
Copy link
Author

Sorry my mistake. It should has been chown. I.e. when I what to unpack jboss-4.2.3.GA.tar.gz I want to use this folder structure.

/var/jboss-4.2.3.GA
/var/jboss -> /var/jboss-4.2.3.GA

Using:

ark "jboss" do
url "http://url/jboss-4.2.3.GA.tar.gz"
version "1.0"
prefix_root "/var"
home_dir "/var/jboss"
owner 'jboss'
action :install
end

The jboss user will own the installation folder /var/jboss-4.2.3.GA. Because other programs is only using the link /var/jboss I want the permission to be the same as the concrete folder so I will not have any permission issue if the owner of the link is the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants