LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-19-2008, 10:23 AM   #1
webmarks
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Rep: Reputation: 0
Question CentOS Webserver - user policies


Figured I should ask, 'cause if anything goes wrong I should at least have answers...

On the company webserver (LAMP), all clients (websites) are set up with an identical username and group. A former employee was fond of doing everything as root, and I will often be logged in as a website's user and be unable to perform certain tasks because root is the group and owner of files and directories. For all of our website users, I can't seem to su.

Should I add all users to wheel group so that I can su as them when necessary?

Also, I've noticed that when there are problems with the user:group setup for a public_html directory, the fastest way to have error-free operation is to chown the directory recursively:

chown [user]:nobody public_html ./* -R

The floor is open for admonishment

Any suggestions are welcome and appreciated.
 
Old 06-20-2008, 03:24 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Try su - (su space dash). That SHOULD give both root permissions and root path. Just su gives you just root permissions but only the path of the user you are logged in as (usually limited).
 
Old 06-20-2008, 10:22 AM   #3
webmarks
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
su is a no-go

All of the server-created (WHM-created) users get access denied to su:

Code:
[xxx@host includes]$ su
-bash: /bin/su: Permission denied
 
Old 06-20-2008, 02:39 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Take a look at the permissions of su. I would suspect that for some reason (not a good one that I can think of) the permissions have been set so a user cannot use su. I would change that. It is far more secure logging on as a user and suing than logging on as root.
 
  


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
user permissions and policies Subin Linux - Newbie 5 05-30-2008 02:30 AM
can't acces local network webserver as user adibuta Slackware 4 01-13-2006 04:52 AM
Managing user Accounts with Group Policies, LDAP AdamSBS Linux - Software 2 08-24-2005 09:10 PM
Managing User Account policies nirmaltom Linux - Enterprise 1 08-20-2005 08:50 AM
Permission problem with uni multi-user webserver Proud Linux - Security 5 04-17-2005 12:42 PM


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