![]() |
2010-11-10
, 10:40
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#2
|
The Following User Says Thank You to Rob1n For This Useful Post: | ||
![]() |
2010-11-10
, 10:47
|
Posts: 25 |
Thanked: 8 times |
Joined on Jan 2010
@ MUMBAI
|
#3
|
![]() |
2010-11-10
, 10:55
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#4
|
chgrp -R user *
The Following User Says Thank You to x-lette For This Useful Post: | ||
![]() |
2010-11-10
, 11:16
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#5
|
now i am not sure if it did change anything...it showed that operation not permitted for certain files..but not for all...
so i am sure some operation was performed on the remaining files..and it seemed like a recursive call for all the files / folders..within $...
now when I do $ ls -l it shows that
certain files have
user users
user root
root root
so what exactly are these against the files / folders.. one is the owner/group? and how does this affect..
i can see all diff permissions on these entries .. like r w x ..values..
-rwxr--r-- 1 user games 123 Nov 1 12:34 somefile
The Following User Says Thank You to x-lette For This Useful Post: | ||
![]() |
2010-11-10
, 11:49
|
Posts: 25 |
Thanked: 8 times |
Joined on Jan 2010
@ MUMBAI
|
#6
|
Just curious: why did you do that? Some script running wild or testing random commands or what did you try to do?
![]() |
2010-11-10
, 12:06
|
Posts: 38 |
Thanked: 33 times |
Joined on Aug 2010
@ Bangalore, India
|
#7
|
![]() |
2010-11-11
, 06:29
|
Posts: 25 |
Thanked: 8 times |
Joined on Jan 2010
@ MUMBAI
|
#8
|
Are you sure the cd didn't succeed? Where did you intend to change directory to? Just before the $ will show the place where you are currently in the file system. If you are in /home/user it should show ~
Was this what was shown before you executed the chown chmod commands?
![]() |
2010-11-11
, 06:59
|
Posts: 38 |
Thanked: 33 times |
Joined on Aug 2010
@ Bangalore, India
|
#9
|
~ $ touch tmp_file
~ $ chmod 777 tmp_file ~ $ ls -l tmp_file
The Following User Says Thank You to kitwalker For This Useful Post: | ||
![]() |
2010-11-11
, 07:14
|
Posts: 255 |
Thanked: 61 times |
Joined on Feb 2010
|
#10
|
I accidently did a chown -R user:root * at $
to top that.. I also did chmod -R 755 * at $
I am not sure exactly what has changed ..I mean permissions on my $ (folders and files) and ownership...
can any one help me revert this.. ..
please...thanks already...
mastermind