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.
Firstly, I need to allow a user write access to mounted vfat (DOS/Windows) partitions. I'm using RedHat 7.1.
Secondly, a more general question: when I want to run a program I just compiled (i.e. wrote and compiled) I have to type the name of the directory with the name of the program. For example if I want to run "myprogram" located in ~/programs/c/, the command to run it would be ~/programs/c/myprogram. If I'm currently in ~/programs/c, then, how do I run "pyprogram" without typing out the full path?
Thank you!
but...
Can you be more specific about changing permission levels. I've never done this before, and don't know where to start or where to go from there.
Here's the chmod tip I wrote for LinuxOrbit.com and Emazing.com:
One of the most common administration tools you will use under Linux is chmod. Chmod allows a user (usually root) to change the permissions of a given file using the syntax
chmod XXX filename
where X is a number from 0 to 7. These numbers represent the permissions for 3 different categories. The first number represents the permissions for the owner of the file. The second number represents the permissions for the group that the owner belongs to. The last number represents all other users outside of the owner and the owner's group. Here's an easy guide for what each number means for the permissions on a given file:
0 None - cannot read or write or execute
1 Can execute, but cannot read or write
2 Write-only, cannot read or execute
3 Write-able/executable
4 Read-only, cannot write to or execute
5 Read-only executable, cannot write to
6 Readable Writeable file, but not executable
7 Readable Writeable Executable file
So if you need to give permissions to a file to make it read/write/executable for the owner and read/executable for the resxt of your system, use the command
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.