You are not logged in.

#1 2012-02-26 14:52:03

st0ne2thedge
Member
Registered: 2010-07-03
Posts: 26

[SOLVED] http group add $USER

hi all

i'm having a little problem managing my permissions for my http server on my arch install, i made a link tomy /srv/http dir from my /home/myuser/files/ because i didn't account for this huge number of files that are being stored.

i chowned the /home/myuser/files/ folder to http so now when i ls -l owner is set to http.

i added my account which i use to ssh into my system using the following command: 'sudo usermod -a -G http $USER'

to make sure i was added to the group i used the following command: 'cat /etc/group | grep $USER'

the http group is in there, making me believe everything is fine for me to make changes to the directory without any problems, this is not the case, i still need to use the sudo command if i want to change anything to the directory, which doesn't quite facilitate the use of sftp wink.


i'm hoping this isn't something i should have put in the newbies corner, if so, i hope you can forgive me



my regards

vincent

Last edited by st0ne2thedge (2012-02-26 16:56:51)

Offline

#2 2012-02-26 16:36:13

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] http group add $USER

So if I understand correctly, you've made a symlink from /home/myuser/files/ --> /srv/http? In that case, have you also set the correct permissions on /srv/http (and not just /home/myuser/files/)?


Burninate!

Offline

#3 2012-02-26 16:45:23

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] http group add $USER

You cannot set permissions on a symlink.

Using out-of tree content for your webserver only complicates things; if space allows you're better off setting up some syncing method between your homedir and the http server root. Not to mention any security complications of letting people sniff around in your homedir.

If you want to use symlinks, put all the original content in the http server root, symlink it to your homedir, and make yourself owner of the files (or member of the group, and make sure the group has read/write permissions).

Last edited by .:B:. (2012-02-26 17:02:23)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2012-02-26 16:55:38

st0ne2thedge
Member
Registered: 2010-07-03
Posts: 26

Re: [SOLVED] http group add $USER

thank you for the quick reply, so i guess the thing to do is create a seperate partition for the /srv/http, so i can remove the symlink and simply mount it at startup?

Offline

#5 2012-02-26 17:03:00

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] http group add $USER

There is no need for a separate partition?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2012-02-26 17:14:28

st0ne2thedge
Member
Registered: 2010-07-03
Posts: 26

Re: [SOLVED] http group add $USER

.:B:. wrote:

There is no need for a separate partition?

You mean i can enlarge the partition /srv/http is on?

Offline

#7 2012-02-26 17:39:10

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] http group add $USER

I don't know how your partition layout is, but if that's necessary and your partitioning layout allows for this, then yes.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB