chown

change ownership of a file

copy
13
0
chown root:root myfile.txt Changes the owner and group of the file myfile.txt from web:users to root:root

details |

copy
6
0
chown -R root:root /etc/make sure the /etc is owned by root for all files and directories

6 years, 6 months ago john 0 | details |

copy
4
0
chown -hR root /tmp/mydirChange the owner of mydir and all subfiles to root

details |

copy
3
1
chown root myfile.txtChange the owner of the file myfile.txt to root

details |

copy
2
1
chown -Rv web chown/ Change the owner of the directory chown to web for all files/directories recursively and output what has changed.

details |

copy
3
0
chown -hR root /u

source | details |

copy
2
0
chown john:john mydoc.docchange the ownerships on mydoc.doc to user john, group john

6 years, 6 months ago john 0 | details |

copy
2
0
chown root /u

source | details |

copy
2
0
chown root:staff /u

source | details |

copy
1
0
chown -h -R --from=web root /tmp/mydirChange all the files and directories owners in /tmp/mydir from web to root only if they have web as a owner.

details |

copy
0
0
chown john:john mydoc.docchange the ownerships on mydoc.doc to user john, group john

6 years, 6 months ago john 0 | details |