LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2004, 08:45 PM   #1
CrotchCricket
LQ Newbie
 
Registered: Oct 2004
Location: Los Angeles, CA
Distribution: Fedora Core
Posts: 12

Rep: Reputation: 0
Chaning Permissions from console


hi does anybody know the command to change folder permissions in console so that i can give not root users access to folders. btw i am using fedora core 3 test 2
 
Old 11-22-2004, 08:51 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
chmod to change access permissions
chown to change owners and group
 
Old 11-22-2004, 09:07 PM   #3
CrotchCricket
LQ Newbie
 
Registered: Oct 2004
Location: Los Angeles, CA
Distribution: Fedora Core
Posts: 12

Original Poster
Rep: Reputation: 0
ok im still having a bit of trouble.
what i want to do is change the permissions in the folder /home/mike/orders
so that i can write to the file orders.txt in the /home/mike/orders folder using apache.
 
Old 11-22-2004, 09:21 PM   #4
slyman
Member
 
Registered: Jun 2004
Location: Sydney, Australia
Distribution: FC3, Linux From Scratch, Knoppix
Posts: 99

Rep: Reputation: 15
Probably the easiest way to do this is to make apache a member of the group that has access to /home/mike/orders and /home/mike/orders/orders.txt and make give that group write access.

It may be more secure to create a new group and user, both called, say, orders and make /home/mike/orders and /home/mike/orders owned by ordersrders. Then make the users apache and mike members of the group and give them write access.

Anyway, first off what does the following return?

Code:
ls -l /home/mike/orders
 
Old 11-22-2004, 09:26 PM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
Read the Man pages for chmod
In Konsole enter

man chmod

Or if you use KDE you can open the KDE help center (the life presever icon) and open the UNIX man pages.

For example: If you want to allow all users to write to it then

chmod a+w /home/mike/orders

Read the man page carefully, it tells you how it's done.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chaning default directory in wu-ftpd PeaceTank Linux - Software 0 12-10-2004 04:23 PM
Chaning Screen Resolution kaplan71 Slackware 6 08-26-2004 05:04 PM
Hostname Chaning InSane103 Linux - Networking 2 08-18-2004 10:13 PM
chaning linux scheduler() dumb82 Linux - General 0 07-22-2004 11:50 PM
chaning colors RaheimSG Linux - Newbie 3 09-18-2002 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:24 PM.

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