change file permissions in ubuntu through command line

How will I change a file permission so that it can be read?This is my file:

koha-conf.xml -rw-r-----
1

2 Answers

To make it readable to everyone

you can provide the command

chmod 777 koha-conf.xml

where 7 is divided into three value 4 (read) + 2 (write) + 1 (execute)

so it would be accessible by all user & all groups & everyone else.

Looks readable if you are the user that owns it, or are in the group that owns it.

Try:

chown your-user-name:owner-group koha-conf.xml

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like