Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

Grant root-like access to user over dir on AIX

8:08 pm on May 10, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 4, 2002
votes: 0

My org runs its web site off an AIX system. I post my web updates to a staging area for the admin to move on to the server.

My admin says that for me to have the ability to move in new files myself I need to be root (for the web dir at least), but for security reasons, I can't be given root system wide. Anyone know how to make me god of the web dir and joe user everywhere else? Many thanks.

8:13 pm on May 10, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Nov 30, 2003
votes: 0

[edited my first answer, don't think it would work for what you were asking]

Another common method is to have the admin set up sudo so you log into something like root, which is basically root minus a few commands.

8:25 pm on May 10, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 1, 2002
votes: 0

You can ask him to copy the needed binaries to the directory above one that is used to hold web content and give you access to root in a chroot'ed environment confined just to that location.

Another possibility is to create a special group that would be allowed access to modify those files and add your user account to that group.

9:44 pm on May 10, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 30, 2003
votes: 0

I don't see why proper use of groups and directory permissions can't solve this problem...


4:26 am on May 20, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 31, 2003
votes: 0

This doesn't make sence. I have developers that update pages all the time and they certainly don't have root access. Just a regular login.

Unfortunatly it might just be a "Short and Sweet" answer from the admin.

A simple solution that I use is create a group for webfile editing.

I assume (and yes I know that's risky ;) ) that you are using Apache.

Make the document root for the website owned by the new group. Also set the Group Sickybit and give the group write privileges.

Now create accounts for people that need to edit files. Add them to the group.

The Sticky bit ensures that newly created files will have the document root directories group rather than the users default group.

There are other ways some simply but I like this one :)


3:17 pm on May 20, 2004 (gmt 0)

Administrator from CA 

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 8, 2003
votes: 61

Mike, I think what your web developer is asking you is to get write permission to your web directory.

You can do with, as SeanW suggested, with proper permissions. Simply make yourself the owner of your web directory.