Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-28-2005, 12:38 PM   #1
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:

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/
is there a preferred way to execute a command as a different user which might not clutter up my logs so much?


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

Rep: Reputation: 66
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
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


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
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 > Forums > Linux Forums > Linux - Security

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