LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-19-2015, 08:13 AM   #1
kishorebg
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Rep: Reputation: Disabled
sudo user account owners


Hi All,
i have linux hosts with sudo user.we have some cron jobs running on it from sudo user.whenever cron job executes ,if it has any output then it notifies the same in mail to mailer id of sudo user i,e sudouser@domain.com.and mail is coming from Cron Daemon <root@hostname.domain.com>.

1) Here the problem is we have some 10 ppl having access to sudo user, but only two ppl are getting this mail.

where is this recipients configured for mail???
is there any owners for sudo user ??

2) cron mail alert will always have cron job as its subject.
we are getting some mails for that not able to see cron job in crontab -l.

then from where this alerts are coming...
 
Old 07-19-2015, 01:49 PM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Look at
Code:
/etc/aliases
 
Old 07-27-2015, 08:21 PM   #3
kishorebg
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
thanks for reply.

I am seeing it as postmaster.Where i can check exact recipients.
 
Old 07-29-2015, 08:43 PM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Look under postmaster.
 
Old 08-02-2015, 05:31 AM   #5
kishorebg
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
can you specify the file/path where this postmaster is define.
Now in /etc/aliases file am seeing it as:

mailer-daemon: postmaster

# General redirections for pseudo accounts.


newsadm: news
newsadmin: news
usenet: news
ftpadm: ftp
ftpadmin: ftp
ftp-adm: ftp
ftp-admin: ftp
www: webmaster
info: postmaster
marketing: postmaster
sales: postmaster
support: postmaster
 
Old 08-06-2015, 02:31 PM   #6
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Another place you can look is /etc/sudoers file for something like mailto "admin@staff.example.com"
 
  


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
How can I search for a user account in various sudo related config files? melybee Linux - Newbie 8 06-18-2014 05:36 AM
howto log usage of shared account (root account) after `sudo su -` drManhattan Linux - Server 5 09-30-2011 07:48 AM
After improper shutdown, 1 user can't startx (KDE), sudo, OR su. Root account is ok! ShellyCat Linux - Desktop 2 09-19-2010 03:56 AM
Can't use sudo, only account that's not root is not a sudo'ers [Ubuntu 9.10] randyriver10 Linux - Desktop 1 01-09-2010 07:56 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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