Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am familure with chmod +x to make things executable, but what is the 755.
oh and found out i could run it if i navigated to the dir and just typed in vncserver without the ,/, but was under the impression that the ./ ment i could run it from what ever dir. i was currently in. is that wrong?
Originally posted by Lleb_KCir what is 755 in the chmod?
i am familure with chmod +x to make things executable, but what is the 755.
oh and found out i could run it if i navigated to the dir and just typed in vncserver without the ,/, but was under the impression that the ./ ment i could run it from what ever dir. i was currently in. is that wrong?
The './' part tells it to run an executable file in the directory you're currently in. If you're not in that directory, you have to type out the full path, unless the file is in a directory in your system path. If you can execute it without the './,' that should mean it's in your path.
Calculating a Mode.
Owner Group Others
rwx rwx rwx
400 200 100 40 20 10 4 2 1
_
Simply add up the numbers corresponding to the individual permission you want.
If you want a permission of "rw-r--r--", you add: 400 + 200 + 40 + 4 = 644
Then at the command line, you must use the "chmod" command like this:
chmod 644 filename
thank you very much. so 755 would be rwx-rx-rx or something like that, but basicaly gives owner full permissions, and group, other read and execute.
[edit] copy/paste did not work real well. edit again to note that this forum dose not keep spacing in post when it publishes the reply. there should be spacing enough between Owner, group, others to spread out the #s a little better.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.