Results 1 to 3 of 3
Hi.
Is there a way to restore the group ownership value to a previous state?
What I did is I tried to change the group owning a folder but I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-12-2005 #1Just Joined!
- Join Date
- Apr 2005
- Posts
- 1
How to restore group ownership
Hi.
Is there a way to restore the group ownership value to a previous state?
What I did is I tried to change the group owning a folder but I targeted the wrong folder while doing so. Now I would like to correct the situation, but I don't know what group of users was owning the folder before the change. Is there any way I could, at least find out what group was owning the folder previous to the change?
- 04-12-2005 #2
By default, the group the folder belongs to is the same group that the owner belongs to.
You can't see the prior owner of a file or folder. But you can try using chmod 640 <folder name> and it will assign RW permissions to owner, R permission to group and block everyone else from viewing it.
the numbers are as follows:
7 = Read Write Exec
6 = Read Write
4 = Read
0 = Block
when chmodding, the 1st number is for the owner's rights. 2nd is for group rights and 3rd is for other's rights.
- 04-12-2005 #3
... and there's the chown command for changing group ownership. For eg., chown fingal /fingal/myfile
I've not really used it much myself though.I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso


Reply With Quote
