Page 1 of 1

Folder ownership problem

Posted: Mon May 02, 2016 3:07 pm
by vlahonick
After installing Vesta I was too lazy to setup and switch to admin user immediately and I did some stuff as root. Now I am confused with the folder and file ownership since I am not sure which should belong and were.

Code: Select all

my@vestaserver:/home/admin# ls -lh
total 16K
drwxr-xr-x  5 root  root  4.0K Dec 19 13:48 conf
drwxr-x--x 21 root  root  4.0K Apr 19 11:05 mail
drwxrwx--x  2 admin admin 4.0K Apr 13  2015 tmp
drwxr-x--x 21 admin admin 4.0K Apr 19 11:05 web
Should conf and mail belong to root or to admin?

Re: Folder ownership problem

Posted: Mon May 02, 2016 7:21 pm
by Falzo
it is correct like shown there conf and mail belong to root. this makes sense, as the user itself shouldn't be able to change things there.

Re: Folder ownership problem

Posted: Mon May 02, 2016 10:04 pm
by skurudo
Like Falzo said, it's correct. If you look deeper, you see logs it's simlink... :)