Question:
changing permission for folders in linux?
Gopal B
2012-06-09 04:44:55 UTC
hi, i' need to write a file to a folder. but wen i tried it showed as its a read only folder. wen i tried to change the permission for the folder using chmod command, it showed as bad chmod. wen i give "which chmod" command, it throwed error as chmod not found. is there any possibility to change the permission other than using chmod? wat shd i do to get chmod command working? pls help me, i'm struck here
Five answers:
ratter_of_the_shire
2012-06-09 06:04:52 UTC
chmod may not be in your path for some reason



run this command



"echo $PATH"



/bin should be in it somewhere, if not add it



path = $PATH:/bin

'

also check "cat /proc/mounts" to make sure it's not the file-system which is mounted read-only.
anand
2012-06-10 05:31:57 UTC
use chmod command to change read write permission using superadmin account
2016-12-12 13:55:47 UTC
the basis consumer can do what it needs. to alter a permission, you employ the chmod command accompanied via a three digit variety chmod 777 /document/call this provides permission to everybody to do something. the 1st variety is permissions of the owner the 2d is the permission of the group the 0.33 is the permission for the consumer 0 - no permissions a million - potential to view 2 - potential to alter 4 - potential to get right of entry to chmod 000 supplies no permissions to all of us (different than root) chmod 755 supplies all permissions to proprietor, get right of entry to and look at to group and consumer the three permissions, you basically upload what you pick each and each entity to do. in case you pick the owner to get right of entry to and regulate, the group to view, however the consumer to do not something: chmod 610 /document/call chmod is shord for replace module
?
2012-06-09 09:50:42 UTC
You could use the chown.



⁍ su

⁍ chown [options] UserName:GroupName /path/to/directory



or



sudo chown [options] UserName:GroupName /path/to/directory



if you are changing permissions of a directory, you will need to use the recursive option.



e.g.,

sudo chown -R root:root /path/to/directory
2012-06-09 05:20:54 UTC
use root access .


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...