LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 09: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, 02:49 PM   #2
lazydog
Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 829
Blog Entries: 1

Rep: Reputation: 137Reputation: 137
Look at
Code:
/etc/aliases
 
Old 07-27-2015, 09: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, 09:43 PM   #4
lazydog
Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 829
Blog Entries: 1

Rep: Reputation: 137Reputation: 137
Look under postmaster.
 
Old 08-02-2015, 06: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, 03:31 PM   #6
lazydog
Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 829
Blog Entries: 1

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


Reply


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
How can I search for a user account in various sudo related config files? melybee Linux - Newbie 8 06-18-2014 06:36 AM
howto log usage of shared account (root account) after `sudo su -` drManhattan Linux - Server 5 09-30-2011 08: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 04: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 08: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 11:02 AM


All times are GMT -5. The time now is 01:43 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration