LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-29-2007, 09:55 AM   #1
essdeeay
Member
 
Registered: Aug 2004
Location: United Kingdom
Distribution: Debian
Posts: 88

Rep: Reputation: 15
Adding permissions in Linux


This sounds so simple - I might be having a brain fart, but I can't for the life of me remember how to...

Folder /var/www/html/ltg is owned by fred:apache. "joe" needs write access to this folder also.

How do I configure this?

Thanks,
Steve
 
Old 01-29-2007, 10:06 AM   #2
sadiqdm
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: openSUSE, Ubuntu
Posts: 358

Rep: Reputation: 35
At a command prompt do:
Code:
#> su
Password: (put in your password)
#> cd /var/www/html/
That will get you to the parent folder for /ltg, then you use the chmod command to set the permissions. You need to make sure that the group for the folder is set with chgrp. For example if you want it to be read write for all users you do:
Code:
#> chgrp users ltg
#> chmod 775 ltg
You could also set a new group, and that add "fred" & "joe" to this. Depending on what desktop you are using, you should find a User Management tool in the System menu.
 
Old 01-29-2007, 10:34 AM   #3
essdeeay
Member
 
Registered: Aug 2004
Location: United Kingdom
Distribution: Debian
Posts: 88

Original Poster
Rep: Reputation: 15
Thanks for that Sadiq,

Doesn't it have to be group-owned by 'apache' for Apache to work properly though?

If so, and I created a group called LTG, and made 'apache' a member of this group, would that work?

Cheers,
Steve
 
Old 01-29-2007, 11:38 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That should work - just remember to restart apache after that
to make it aware of its newly gained group membership.


Cheers,
Tink
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba adding unwanted permissions digi691 Linux - Networking 0 05-20-2006 01:03 AM
creating groups, adding users, and setting permissions bowie101 Linux - Newbie 2 11-23-2005 12:42 PM
Adding a Linux Machine to Linux Domain Gunbunny Linux - Networking 2 09-16-2005 05:47 AM
adding new HD to Linux g1user Linux - Hardware 0 06-20-2004 01:44 PM
Adding user permissions bcf2 Linux - Newbie 3 11-01-2003 10:14 AM

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

All times are GMT -5. The time now is 04:19 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