i have downloaded files with root to a user's folder but now he is not able to delete some of them because owner is root how could i change the owner of all folders and subfolders and files under a directory
which is user name :)
2010/4/2 Clive Hills discordianuk@gmail.com
The command you want is chown : read man chown.
Clive
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
2010/4/2 cahit Eyigünlü cahit.eyigunlu@gmail.com:
which is user name :)
2010/4/2 Clive Hills discordianuk@gmail.com
The command you want is chown : read man chown.
Clive
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
"chown --help" will also help you
thanks
2010/4/3 Paul Stuffins dephenom@fsirc.net
2010/4/2 cahit Eyigünlü cahit.eyigunlu@gmail.com:
which is user name :)
2010/4/2 Clive Hills discordianuk@gmail.com
The command you want is chown : read man chown.
Clive
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
"chown --help" will also help you _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
do you mean that for example a folder of root will be owned by cccc chown -R root:cccc /path/*
2010/4/3 Niki Kovacs contact@kikinovak.net
cahit Eyigünlü a écrit :
thanks
# chown -R youruser:youruser /path/to/your/downloaded/files
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
cahit Eyigünlü a écrit :
do you mean that for example a folder of root will be owned by cccc chown -R root:cccc /path/*
I think it would be wise to read some basic *nix documentation. Something like :
* Linux Cookbook (Carla Schroder) * Definitive Guide to CentOS * Foundations of CentOS * Red Hat Enterprise Linux 5 Administration
It's not much use trying to fly a plane by pushing all the buttons and see what they do. This advice is meant in a friendly way.
Cheers,
Niki
the main problem that i have copied files directly to public_html folder and it is returnin 500 internal error now , and i need to allow the web user of this folder to read write content of this folder
2010/4/3 Niki Kovacs contact@kikinovak.net
cahit Eyigünlü a écrit :
do you mean that for example a folder of root will be owned by cccc chown -R root:cccc /path/*
I think it would be wise to read some basic *nix documentation. Something like :
- Linux Cookbook (Carla Schroder)
- Definitive Guide to CentOS
- Foundations of CentOS
- Red Hat Enterprise Linux 5 Administration
It's not much use trying to fly a plane by pushing all the buttons and see what they do. This advice is meant in a friendly way.
Cheers,
Niki _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Do an ls -lha public_html in the user's folder and look what group the files are owned by. Then do chown username:group -R public_html.
Ryan
2010/4/2 cahit Eyigünlü cahit.eyigunlu@gmail.com:
the main problem that i have copied files directly to public_html folder and it is returnin 500 internal error now , and i need to allow the web user of this folder to read write content of this folder
2010/4/3 Niki Kovacs contact@kikinovak.net
cahit Eyigünlü a écrit :
do you mean that for example a folder of root will be owned by cccc chown -R root:cccc /path/*
I think it would be wise to read some basic *nix documentation. Something like :
- Linux Cookbook (Carla Schroder)
- Definitive Guide to CentOS
- Foundations of CentOS
- Red Hat Enterprise Linux 5 Administration
It's not much use trying to fly a plane by pushing all the buttons and see what they do. This advice is meant in a friendly way.
Cheers,
Niki _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
That worked thanks
2010/4/4 Ryan Wagoner rswagoner@gmail.com
Do an ls -lha public_html in the user's folder and look what group the files are owned by. Then do chown username:group -R public_html.
Ryan
2010/4/2 cahit Eyigünlü cahit.eyigunlu@gmail.com:
the main problem that i have copied files directly to public_html folder
and
it is returnin 500 internal error now , and i need to allow the web user of this folder to read write content of this folder
2010/4/3 Niki Kovacs contact@kikinovak.net
cahit Eyigünlü a écrit :
do you mean that for example a folder of root will be owned by cccc chown -R root:cccc /path/*
I think it would be wise to read some basic *nix documentation. Something like :
- Linux Cookbook (Carla Schroder)
- Definitive Guide to CentOS
- Foundations of CentOS
- Red Hat Enterprise Linux 5 Administration
It's not much use trying to fly a plane by pushing all the buttons and see what they do. This advice is meant in a friendly way.
Cheers,
Niki _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos