Re: One silly chmod question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bohdan,


You have give me the right answer !!! ;-)

I can´t use root because this use hasn´t ssh access, so I can´t use the
'rsync ssh' command with it,

but the other idea is great, I have followed your indications (with other
names) and all works like a charm,

thank you very much,

ESG

P.S.: and I want to change the permissons of the files owned by other,!!!!!
sometimes when you are a lot of time with the same problem you lose the
head!!




2010/1/14 Bohdan Sydor <bohdan@xxxxxxxxxx>

> ESGLinux wrote:
> > I have a webserver with the user apache being the owner of all under
> > /opt/www/.
> > One more thing, when I update one file, it changes the owner and group of
> > the file to the user that I use to connect.
>
> > I use this:
> > rsync -azv -e 'ssh ' --delete /locatpatch/* user2@server:/opt/www/
>
> > any idea?
>
> The easiest way (but not the ultimate one) is rsync the files as root.
> Root can both change the ownership and permissions of files. To do it
> more securely I'd recommend to disable password login for user root via
> ssh.
>
> Another (IMHO better) way is to try such configuration:
>
> /opt/www owned by user2 and group ie. webmasters, chmod 2770 /opt/www
> and add user apache to group webmasters. Then, under /opt/www all files
> will be owned by user2:webmasters. If apache is to modify some files,
> they must be group-writable.
>
> regards
> --
> Bohdan Sydor
> RHC{E,I,X}
> www.sydor.net
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux