LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-02-2007, 01:28 AM   #1
Leb_CRX
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 14

Rep: Reputation: 0
permission question with fresh install


fresh install, centos5
want to grant a specific user access to the html dir for apache...he'll be going in through samba, actually have the user browsing, but can't add/edit files

usually I just chmod 777 the web dir and all is well...but I know that's not right

just wondering, what is the right way to do it? create a group called web or something, chgrp the dir and give it access?

right now the owner/group for www is root

or is there a better way?

Last edited by Leb_CRX; 09-02-2007 at 01:32 AM.
 
Old 09-02-2007, 12:05 PM   #2
bmarx
Member
 
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
Having the permissions as 777 seems like a little overkill. This allows the owner, group, and everyone read/write/execute permissions. Then again, i do not know exactly how your network is setup.

Try doing man chmod and man smb.conf from the command line. Also, you should try looking in the smb.conf file itself, the notes are very useful, and may save you from having to look through the man page.
 
Old 09-02-2007, 08:44 PM   #3
Leb_CRX
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bmarx View Post
Having the permissions as 777 seems like a little overkill. This allows the owner, group, and everyone read/write/execute permissions. Then again, i do not know exactly how your network is setup.

Try doing man chmod and man smb.conf from the command line. Also, you should try looking in the smb.conf file itself, the notes are very useful, and may save you from having to look through the man page.
thanks for your help, but I ended up coming across a link that talked about administration

just an FYI, I ended up creating a group with addgroup called web, added the users I wanted to that group, then gave that group rwx permission on that folder, issue resolved
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fresh Install - AMD64 Question (ATI Radeon Xpress200) rickh Debian 3 09-18-2005 07:06 AM
On a Fresh install of 10.1, the Nforce drivers refuse to install.. K@rl` Slackware 2 02-25-2005 03:55 AM
Fresh Slackware 10 Install, forcedeth question Skazi Linux - Networking 3 08-18-2004 06:10 AM
fresh install (fresh headache) powadha Slackware 2 03-06-2004 02:03 PM
An Interesting question about a fresh install gamehack Debian 5 01-27-2004 03:04 PM

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

All times are GMT -5. The time now is 06:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration