Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-08-2009, 07:15 AM   #1
Registered: May 2007
Posts: 128

Rep: Reputation: 15
Wheel user related questions

I made a wheel user for security and succeeded

Now I want:
1) when it logs in it should see this folder /usr/share/apache-tomcat-6.0.20
2) It has priviliges to start/stop tomcat or to delete /usr/share/apache-tomcat-6.0.20/logs

Thanks & best regards
Old 07-08-2009, 09:01 AM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
If you have set up a user account as a member of the wheel group then you should be able to do whatever you want to do by using the sudo utility. Since different Linux distributions have different details in this area you should read the /etc/sudoers file to see if the wheel group is listed as authorized to use sudo. It should be but you never know what a distro developer is going to do.

1) That directory is publicly viewable. Your user account should already be able to see into that directory.

2) This is a matter of setting group membership for the user account and proper file permissions on the files.

2a) Find out what group owns the /usr/share/apache-tomcat-6.0.20/logs directory and the files within it.

2b) Then make sure that the group has rwx permission on the directory and rw permission on the files.

2c) Add your user account to the group that owns those files.

You may need to set the umask of the account that runs the tomcat software. I don't use tomcat so I don't know the details of how it is run, and you didn't tell us your distribution so there is no way that I could be sure how tomcat is run on your distribution.

Last edited by stress_junkie; 07-08-2009 at 09:05 AM.


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
OS related questions burtonboarder230 Linux - Newbie 14 12-08-2008 03:45 PM
basic questions on hostname and domain name + related postfix questions Moebius Linux - Newbie 7 09-04-2007 12:50 PM
Where should I ask GPL-related questions? ErV General 2 08-23-2007 10:27 AM
3 non-related questions Rognon Slackware 5 02-06-2004 05:45 PM
A few questions from a new user. Driver related davess4 Mandriva 6 09-03-2003 04:00 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration