Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I typed in a XTerm in IceWM(knowing I don't have permissions):
You have email in /var/mail/username
#1 I can't access that folder with these permissions. Why would it place it in such a folder?! What is in this file?
#2 What part of the system is responsible for this/ where do I turn this off?
Any help appreciated.
Try typing 'mail', that should open up the mail programme and show you the message. And I know they send mail to root (if it's configured to do so) when you try to become root using the 'sudo' command but aren't authorised to do so. So perhaps it's just a notification that a user is doing something they don't have permission to do (ie. using the command you typed)
So there is this program called 'mail'? I see. Indeed it seems to be a system message. Also actually I did have permissions to access the file (I just thought ~ was the top directory XD ). Still, I'd rather disable this behaviour. The info says mails can be 'undeleted': I'd rather not have something silly like this bogging up my HD eventually.
Different distros (and bsd) have their own reasons to send mail. Freebsd I know sends mail if you run an incorrect command in cron.
It's just to detail the error message. You can suppress this method, but I honestly don't remember how. I've never personally ran debian, so I don't know the specifics for it.
As a guess... since you got it through dpkg-configure, it might be in one of the apt-get or package configuration files. Do a grep in /etc/ for 'mail' or something and see what sends mails automatically and then simply comment them out.
Although there is always reasons for wanting the mail. You never know when dpkg might go nuts and you don't know why and the detail would be in the mail. My suggestion is just goto /var/mail/yourusername/ and just wipe it every so often. The mails are quite tiny in size.
Ok. Thanks for all the replies. Starts to sound a bit logical. However, as long as I haven't figured out how to disable it or whether I want to disable it, I won't mark this thread as [SOLVED] (Wouldn't even know how ;D )