LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-12-2001, 09:54 AM   #1
M.I.
LQ Newbie
 
Registered: Jun 2001
Location: United States
Distribution: Red Hat 7.2
Posts: 18

Rep: Reputation: 0
Two simple questions


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?
 
Old 07-12-2001, 09:58 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
first one would be the permission levels.... with the chmod command.

second... you can try ./pyprogram
 
Old 07-12-2001, 10:11 AM   #3
M.I.
LQ Newbie
 
Registered: Jun 2001
Location: United States
Distribution: Red Hat 7.2
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 07-12-2001, 10:27 AM   #4
GonzoJohn
Member
 
Registered: Jun 2001
Location: Louisville, KY USA
Distribution: RedHat and Debian
Posts: 89

Rep: Reputation: 15
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

chmod 755 filename

and the permissions will be

-rwxr-xr-x
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 12:40 PM
3 simple questions dave bean Linux - Newbie 5 09-29-2003 08:20 PM
Three Simple Questions Wapocalypse Linux - Newbie 4 01-04-2003 06:49 PM
simple questions safrout Linux - Hardware 4 12-08-2002 10:00 AM
Three simple questions ErikD Linux - Software 2 10-15-2001 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration