LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-28-2005, 12:38 PM   #1
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
change to unprivileged user without sudo?


Hi all

right now I have a script to start Jakarta Tomcat as user nobody which works great, but it loads up /var/log/messages with messages like this:

Code:
Jan 28 13:23:12 puter sudo:     root : TTY=pts/0 ; PWD=/usr/local/apache2/jakarta-tomcat-4.1.31/webapps ; USER=nobody ; COMMAND=/usr/local/apache2/jakarta-tomcat-4.1.31/bin/startup.sh
is there a preferred way to execute a command as a different user which might not clutter up my logs so much?

TIA

B.
 
Old 01-28-2005, 01:03 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you are running the sudo command as root you could try:
su - nobody -c "/path/to/startup"
 
Old 01-28-2005, 01:32 PM   #3
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Original Poster
Rep: Reputation: 30
thanks, it works but definitely still ends up in the logs. Maybe I'm being too picky. It's certainly good in most instances to know who is su'ing and sudo'ing stuff
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC server as unprivileged user CartersAdvocate Slackware 1 12-18-2004 10:51 PM
Start applications automatically on an unprivileged user? DeathGoth Linux - General 3 10-27-2004 04:29 AM
how to change default SUDO editor??? orgee Linux - Software 3 10-12-2004 07:39 PM
getting access to /var for unprivileged user usernamed Linux - Software 1 05-11-2004 06:38 PM
uncompress and compiling problem for unprivileged user. sixth_sense Linux - Software 3 05-09-2004 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:25 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
Open Source Consulting | Domain Registration