Ubuntu :: Sendmail Causes Home Directory To Disappear
Jul 15, 2011
I wrote a script that is run by cron every 5 minutes, but for some weird reason it causes my home directory to disappear for any currently logged-in sessions. If I SSH in after that, my home directory will be present but once the cron job runs it will disappear again. This is the script:
Code:
if [[ `ps aux | grep '[m]otion.pid'` = "" && ! -e /tmp/ignore-motion ]]; then
echo "security cameras offline" | mail -s "" xxxxxxxxxx@xxxxx.com
fi
And there are a lot of these errors in /var/log/syslog:
Code:
Jul 14 07:51:01 burbank sendmail[16241]: p6EEp1I5016241: from=ian, size=397, class=0, nrcpts=1, msgid=<201107141451.p6EEp1I5016241@burbank>, relay=ian@localhost
Jul 14 07:51:01 burbank sendmail[16251]: My unqualified host name (burbank) unknown; sleeping for retry
Jul 14 07:51:01 burbank sendmail[16241]: p6EEp1I5016241: to=ian, ctladdr=ian (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30397, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jul 14 07:52:01 burbank sendmail[16251]: unable to qualify my own domain name (burbank) -- using short name
Jul 14 07:52:01 burbank sendmail[16251]: p6EEq1Pq016251: from=ian, size=397, class=0, nrcpts=1, msgid=<201107141452.p6EEq1Pq016251@burbank>, relay=ian@localhost
Jul 14 07:52:01 burbank sendmail[16251]: p6EEq1Pq016251: to=ian, ctladdr=ian (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30397, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
I understand that sendmail is having trouble because of my hostname, but why would it cause my home directory to disappear?
View 1 Replies
ADVERTISEMENT
Nov 1, 2010
I am using webmin for my daily tasks. I have fedora 13, whenever I click on ''Sendmail M4 Configuration'' or Outgoing Addresses (generics)'' I get the following error message
Quote:
The Sendmail M4 configuration base directory /usr/share/sendmail-cf was not found on your system, or is not the correct directory. Maybe it has not been installed (common for packaged installs of Sendmail), or the module config is incorrect. I read documentation at sendmail.org, it seems that structure of directories for send mail has been changed in version sendmail-8.1.4 shipped with FC13. In webmin config module we have
Quote:
Sendmail M4 base directory = /usr/share/sendmail-cf
which is not there. I did a locate / sendmail-cf on the command line, it finds nothing
View 17 Replies
View Related
Apr 20, 2010
I have an interdependent collection of scripts in my ~/bin directory as well as a developed ~/.vim directory and some other libraries and such in other subdirectories. I've been versioning all of this using git, and have realized that it would be potentially very easy and useful to do development and testing of new and existing scripts, vim plugins, etc. using a cloned repo, and then pull the working code into my actual home directory with a merge.
The easiest way to do this would seem to be to just change & export $HOME, eg
cd ~/testing; git clone ~ home
export HOME=~/testing/home
cd ~
screen -S testing-home
# start vim, write/revise plugins, edit scripts, etc.
# test revisions
However since I've never tried this before I'm concerned that some programs, environment variables, etc., may end up using my actual home directory instead of the exported one. Is this a viable strategy? Are there just a few outliers that I should be careful about?
View 1 Replies
View Related
May 28, 2010
I recently upgraded to ubuntu10.04 LTS via update manager. Previous version was 10.04 beta. After upgrading I am facing very strange problem.
1) If I start my laptop with network connection then all the folder under /home get disappear. When I do ls -l /home it says no folder found. As all the folder under home is disappearing it is giving so many errors when I login and as a result of this I am not able to start the gnome UI.
I tried to mkdir under home and it says cannot create directory.
I tried with root login but same error.
2) But it if I start my laptop without any network connection then I am able to see all the folders under /home and able to login successfully without any error.
I tried to mkdir under home and it was successfully.
3) I also tried this option, first start the laptop without any network connection and login successfully ( Able to see all folder under /home) but as soon as I plug the network cable and once it is connected all folder under /home disappear and system starts failing.
How to recover that user as I am having that user since ubuntu8.04 and lots of data and customization is there. My previous 10.04 beta version was working perfectly.
View 4 Replies
View Related
Sep 22, 2010
I have a dual-boot macbook with an OS X partition and an ubuntu partition. When I first installed ubuntu, I changed my home folder to my OS X home directory to synchronize all my files from both. My home directory is now /media/sda2/Users/username/. In a regular home folder, the icons for Documents, Music, Pictures, Movies, etc. are different (not just with emblems, but actually different icons). But when I changed my home folder, these subfolders' icons stayed the same as regular folder icons and I can't figure out a way to change that default setting. I know how to change the icons for each folder manually, but these changes don't appear everywhere (i.e. nautilus, places, etc). Furthermore, every time I change my icon theme, I would have to manually reassign icons for these folders. Is there a way to globally change the folder icons for these folders?
View 2 Replies
View Related
May 24, 2011
I need to specify a different path to home directories on a particular server than what LDAP contains for the users, besides using a symlink. E.g. "/Users/jdoe" vs "/home/jdoe" I don't want to change the actual LDAP attributes, just want a particular server to point them in the right direction (Ubuntu 10.04).
I'm assuming it's something I could probably set in pam configurations?
View 1 Replies
View Related
Jul 21, 2009
I have a strange problem when I do SSH to a FEDORA9 based Linux Server.
[Code]....
When I login using "adah" username in TELNET I am automatically directed to my home directory at location "/media/disk-1/home/adah". But when I use SSH to login using the same username I get the following message Code: Could not chdir to home directory /home/adahaj: Permission denied
View 7 Replies
View Related
Jan 6, 2010
I have a secondary disk which holds a /home directory structure from a previous install of Linux. I installed a new version on a new primary drive and mounted this secondary drive as the new /home. Problem is, even though the users are the same names and I can access the home directories for the users, I cannot login directly to their home directories, as I get the following error: -
Code:
login as: [me]
[me]@[machine]'s password:
Last login: Wed Jan 6 18:34:33 2010 from [machine]
Could not chdir to home directory /home/[me]: Permission denied
[[me]@[machine] /]$
Now, since the usernames are correct and the users are in the passwd file with the correct home directory paths, could it be user ID's that are different or something else? It's not as though I cannot access the home directories for the users, simply that I cannot log directly into them from a login prompt.
View 14 Replies
View Related
Jun 19, 2010
Is there anything special about a home directory before users' home directories are stored there, or is just as typical as any other "empty" folder?Let me just cut to the chase, but please no ear ringing about the folly of messing around as root, particularly with directories at root level. I know it's considered stupidity, but I deleted my home directory.
Is there an easy way to restore a working home directory? I tried copying /etc/skel under root, but I'm not sure what a home directory should look like once it has been restored. Besides . & .., there were .screenrc & .xsession in my home directory when I copied /etc/skel. Are these files suppose to be in "/home" or "/home/~" or both?
View 10 Replies
View Related
Aug 26, 2010
I have Ubuntu Karmic. I chose to install with an encrypted home directory. Recently I got a warning that I only had 2GB of drive space left. This is mostly because of my videos. So I went and bought a new hard drive and partitioned it and made 1 ext4 partition and copied my videos all to the new hard drive. I added a line in my fstab to mount the new hard drive to ~/videos, but when I reboot the computer, there is a screen saying something like "error mounting /home/me/videos, press S to skip or something else to reboot". If I press S to skip, then when my system comes up there is a video directory but it's empty because my other hard drive didn't get mounted. I can run sudo mount /dev/sdb video/ and it will mount fine and I can see all my videos, so why can't fstab mount it? Does this have something to do with my encrypted home directory?
View 14 Replies
View Related
Feb 22, 2011
I have a rather interesting issue. I have set up a home network and a fedora 14 box as a server. I am running the version of Sendmail that came with fedora 14. I wrote a PHP script that changes http access passwords(to give authorized access to the outside by multiple users) once a week and emails the users their new passwords. It also finds out my WAN IP (because it is dynamic, and I am using a Linksys router with NAT), and E-Mails users when this has changed along with the new access password. I have Sendmail set up so that it should log on to my websites mail server (smtp.example.net) and send the email through it.
The problem I am having is that I have set up my home server with an internal domain like exampledomain.home, but the wan IP reverse lookup returns xx.xxx.xxx.xxx.static.xxx.xx.charter.com, so that when my sendmail server connects to my smtp server for my website it gives "EHLO server.exampledomain.home" then my smtp server rejects it because the connecting IP (WAN IP) resolves toxxx.xxx.xxx.xxx.static.opls.la.charter.com gives a host not found error. Or it gives the error because server.exampledomain.home is obviously not a valid host name on the internet. I was hoping someone out there had some insight on how I could get around this without editing or adding any DNS entries to my websites domain. I would also like to avoid getting a static IP for my house as it is more expensive. I thought about making a dynamic DNS entry with dyndns.com and then making Sendmail use that host name. I dont know how to trick sendmail like that though.Here is a copy of my sendmail.mc (scrubbed of course).
divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
[code].....
View 4 Replies
View Related
Apr 13, 2010
I'm using Mac OS X's Terminal.app shell to compile and run Fortran programs. One such program resides outside of my home directory (it is in the Applications folder, which resides on my hard drive but seems to be outside of my home folder). How can I navigate into this directory using Terminal.app to run the programs that reside there?
View 7 Replies
View Related
Jul 5, 2010
How in the world do I find the Home Directory?
View 5 Replies
View Related
Feb 1, 2010
I recently found an awful lot of junk files in my home directory, mostly in directories that start with a dot e.g. /home/my home/.mozilla So I did cd du -chs .??* and found 3.5 GB. After pruning, I find < 250 MB of files that I have knowingly created.What is happening is that I installed some programs, say xyz , tried them out and decided they were unsatisfactory, deleted them. The un-installer for xyz deletes the actual program but meanwhile xyz has installed lots of config files or status files in /home/my home/.xyz and the un-installer does not delete these. So if you are running short of space or if backups take forever, it might be worthwhile to do the above command or maybe
View 5 Replies
View Related
Feb 3, 2010
I thought i'd set up the partitions correctly when i installed ubuntu, with a 15 gig "/" partision and a 45 gig "/home" and a 3.8gig "swap"
I was wrong i somehow misplaced the /home partition, and therefore didn't install it
I found this out about 4 days ago as i was running though video tutorial and realized i didnt have it setup correctly afterall
So... i did some research and found this site...[url] and i found something that seemed to work for various people, i deleted the 'now' windows partition and so i had this:
However i unmounted the /home folder following the instructions without realizing that i didnt have permissions to mount the /new home partition as it is not in the extended ubuntu 9.04 linux partition and i have no rights to it
So my question is, how do i fix the path to the /home folder (original) in ubuntu so that i can start over and do this correctly (ie; resize the extended partition and add the /newhoe directory/patition to ubuntu)
I realize that i can use a sudo command before lines to run su commands that are blocked in ubuntu, which is how i screwed up =
I cannot use anything in the menu as all links to programs are dead, i can run the add app, but it cannot install as the install folders are "not there"... i can see them in the terminal so i know my data is there and i can run the live disc to salvage it, but i cannot see it while ubuntu is loaded
Note; i have not restarted the computer and i don't know if this will block ubuntu from restarting either, so i need to fix via terminal, before i can do anything else, like letting the laptop rest.
View 5 Replies
View Related
Feb 19, 2010
if these are set to be encrypted on installation how would I go about changing that?
View 2 Replies
View Related
Jul 2, 2010
I've followed some instructions on installing a new hard drive on Ubuntu ("Installing a New Hard Drive" and "HOWTO move /home to a new hard drive") and I've now successfully got my new drive working with /home. Everything looks to be in perfect working order.Now I'm wondering how to delete my original /home folder. Running "df -h" still shows 97% usage on my / partition and I'd like to clear out the old /home to free up all that space. I just don't know where these files are now is all.
View 9 Replies
View Related
Sep 28, 2010
I made a media station with XBMC and this is working just fine. Now I have an internal hard disk NTFS formatted loaded with multimedia stuff. I would like to appear the disk as directory in my home. Example: /home/xbmc/multimedia where multimedia redirects to the root of the NTFS disk. Is this possible?
View 7 Replies
View Related
Jul 17, 2011
My desktop just froze for some reason and I had to force shut down. When I logged back in I could not get into my /home/username directory, a message popped up that it does not appear to exist and if I would like to put it as root.
what should do to get it back?
View 1 Replies
View Related
Feb 10, 2010
I have a second large storage hdd mounted in Ubuntu in /media/storage. I would like my home directories for me and all future users of the system to be located on this storage drive as well.
I was thinking that the easiest way to accomplish this was to move /home to /media/storage/home and then create a symlink so that /home points to /media/storage/home. Would this work okay?
The only reason I ask, is because I know that a users home directory has a lot of special configuration information stored in it, so I didn't know if this would screw up anything on the system.
Are there any better alternative methods to relocating the home directory?
View 1 Replies
View Related
Jan 7, 2010
I have an interesting problem I have had some troubleinding answers to with researching. The answer is probably so obvious that I should be able to see it. Here is my prob.I am trying to mount a root directory onto the same system (just for testing purposes)I am using nfs and have nfs-kernal-server nfs-common and portmap installed.if I have this in my /etc/exports
Code:
/ 192.168.1.0/24(rw,no_root_squash,async)
then do
[code]...
View 1 Replies
View Related
Apr 6, 2010
have the home directory encrypted after the initial installation? I know on a clean installation you can set this up.However, is there an easy way to do so after? Ubuntu Karmic x64
View 1 Replies
View Related
May 10, 2010
I am having a problem with my PHP installation. After I upgrade to 10.04 (64 bit), the PHP quit working in my home directory... that is:/home/username/public_html/orhttp://localhost/~username/When the PHP is called, the dialogue comes up to download and I am able to download the intact PHP file. The *.html files work normally in the home directory.The /var/www/ directory with PHP works normally (phpMyAdmin, etc.)
View 2 Replies
View Related
May 21, 2010
I ran fsck on the wrong partition (which was mounted) and in my haste blew up the file system on that partition. Now here's the kicker, I had 450Gb of data and documents on that partition that was in an encrypted home directory. So the long and the short of it I ran fsck again and I was able to recover all the files, and they are now residing on a Lost+Found folder on my hard drive.I have located the encrypted files, but I don't know what to do with them.
View 1 Replies
View Related
May 21, 2010
I want to ask a question that the "Desktop" directory located in the "Home Folder" contain the Desktop content.If I deleted this "Desktop" directory, the system will try to use "Home Folder" as the Desktop.When I create the "Desktop" back, system still use the "Home Folder" as the Desktop.So how can I let the system use the "Desktop" directory as the realy Desktop then?
View 3 Replies
View Related
May 26, 2010
I can't log in to my current install of 10.04 (x server doesn't start, or whatever, not too concerned about that), and I would like to at least get my files from my home directory, but most of them are inaccessible when I boot up with my LiveUSB of 10.04, due to permissions, I suppose. Is there an easy way to get them? I know the password to my log in,
View 1 Replies
View Related
May 27, 2010
People usually suggest workarounds to do this, as it's not possible with usermod while the user is logged in. Did I overlook anything or is this method not preferable over creating a new account, setting the user permissions, then moving the files and messing with the file permissions? Using the right tool for the job would seem to be less error-prone to me. 1. Activate the root account by setting a password.
Code:
sudo passwd
2. Log out and log into the root account.
3. Change the username and home directory from user1 to user2. This will also move the files to the new home directory and rename the group to user2.
Code:
usermod -l user2 -d /home/user2 -m user1
[Code]...
View 3 Replies
View Related
Jun 14, 2010
I'm not sure if this is the proper section of the forum for this, but I haven't really seen anything about this particular topic. I've got Ubuntu 10.04 installed as my main OS. It's on a 25GB partition, and I have a 175GB partition that I use as my /home directory.
On the second hard disk I have a 15GB partition that I would like to install, and try out, Slackware 13.1.
Is it a bad idea to try to also use that 175GB /home partition for Slackware and Ubuntu at the same time? Can that cause incompatibility problems for me, with any shared software between the two distros, or is this something that should work ok?
View 3 Replies
View Related
Jun 29, 2010
I would like to move the /home directory to a different location, there only seem to be guides on how to move it to it's own partition.
I have a drive (/dev/sda5) mounted as /media/data
I would like to move /home to /media/data/home?
I have tried usermod but get the following error:
Code:
test@TestServer:/media/data$ sudo mkdir /media/data/home
test@TestServer:/media/data$ ls
home lost+found
test@TestServer:/media/data$ sudo usermod -dm /media/data/home
usermod: user '/media/data/home' does not exist
View 2 Replies
View Related
Jul 14, 2010
I just recently installed a netbook version of lucid. Since it didn't support wifi, I did a wget of the 2.6.35 kernel and since then the netbook has been working great WITH wifi. It has been functioning great so far.Yesterday I went to add a user account for my girlfriend and that's when things went haywire.There were a number of error messages when I tried to log into both her account and mine after creating it:
First error: Could not update ICEauthority file /home/bob/.ICEauthority
Second error: There is a problem with the configuration server. (/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256)
Third error: Nautilus could not create the following required folders: /home/bob/Destop, /home/bob/.nautilus
I have inspected the /home drive and made sure I have permissions for my /home/bob dir, but it doesn't seem to allow me to cd bob. The current permissions for user is drw-rw-r-- and it is owned by bob.
View 9 Replies
View Related