Hi there, Am trying to follow tutorial but I got stock on "Setting the hostname" echo server.inspiron.com > /etc/hostname/bin/hostname -F /etc/hostname shows: bash: etc/hostname/bin/hostname: No such file or directory Should I create a file or directory??
The command must be split up in two lines: Code: echo server.inspiron.com > /etc/hostname /bin/hostname -F /etc/hostname
Quota error Hi there, I worked split it and did ok, the next step with quota got me stuck. I typed: [root@server admin]# quotacheck -avugm bash: quotacheck: command not found [root@server admin]# quota check -avugm quota: invalid option -- a quota: Usage: quota [-guqvs] [-l | -Q] [-i] [-F quotaformat] quota [-qvs] [-l | -Q] [-i] [-F quotaformat] -u username ... quota [-qvs] [-l | -Q] [-i] [-F quotaformat] -g groupname ... Bugs to: [email protected], [email protected] [root@server admin]# quotaon bash: quotaon: command not found I figure that maybe quota wasn't installed but I did ti before: [root@server admin]# yum install quota Setting up Install Process Setting up repositories livna 100% |=========================| 951 B 00:00 updates-released 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 base 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 1.0 MB 00:17 extras : ################################################## 3045/3045 Added 106 new packages, deleted 57 old in 8.13 seconds Parsing package install arguments Nothing to do Like I saw that did nothing I tried: [root@server admin]# apt-get install quota Reading Package Lists... Done Building Dependency Tree... Done quota is already the newest version. 0 upgraded, 0 newly installed, 0 removed and 224 not upgraded. Thank you
Here is! [admin@server ~]$ su Password: [root@server admin]# updatedb [root@server admin]# locate quotacheck /usr/share/man/man8/quotacheck.8.gz /sbin/quotacheck [root@server admin]# Thanks
quotacheck is installed. I guess your PATH variable is wrong. Please post the output of Code: echo $PATH (you must run this as root).
[root@server admin]# echo $PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/admin/bin [root@server admin]#
here is what I got, also I have logged in as root [root@server ~]# /root/.profile bash: /root/.profile: No such file or directory [root@server ~]# /etc/profile bash: /etc/profile: Permission denied [root@server ~]# There is a Question!! am planning to try to deploy a web server using ISPConfig, but first am trying to meet perfect fedora core 4 setup, and I got a question about IP addresses, I got a public one but when creating eth0 and eth0:0 I got the public IP, but what about the :0 address. I know that I need to run a firewall, and I got Astaro but I don't know how to configure it, so am stuck again there. Thanks for advise.
Try Code: cat /etc/profile However, you can create /root/.profile with the following content: Code: # ~/.profile: executed by Bourne-compatible login shells. if [ -f ~/.bashrc ]; then . ~/.bashrc fi PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 export PATH mesg n Then log out and log in as root again and run Code: echo $PATH again and check if /sbin is in there now. The part about eth0:0 is totally optional, you don't need it. It's there to show you how you do it if you hae more than one IP address.
I did follow your instructions and I got: Create file .profile and paste it in /root the log out and get back in then run: [root@morticia ~]# echo $PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin [root@morticia ~]# quotacheck -avugm quotacheck: Can't find filesystem to check or filesystem not mounted with quota option. [root@morticia ~]# quotaon -avug [root@morticia ~]# In the mean time I was following step to have Fedora up and running and then I found on: [root@morticia ssl]# openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024 that is asking me for: [root@morticia ssl]# openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024 180 semi-random bytes loaded Generating RSA private key, 1024 bit long modulus ..................................++++++ .......++++++ e is 65537 (0x10001) Enter pass phrase for smtpd.key: and I typed the root password and then: Verifying - Enter pass phrase for smtpd.key: back again and typed root password. Am doing it right or not?? later I filled out the certificate info. Now I got this: [root@morticia ssl]# chkconfig ipop3s on error reading information on service ipop3s: No such file or directory [root@morticia ssl]# the other were just fine, just got that error Then I went thru: [root@morticia ssl]# telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. Connection closed by foreign host. [root@morticia ssl]# So not everything is fine!!!!
Ok, your PATH is correct now. But you forgot to add Code: ,userquota,groupquota into /etc/fstab and remount the appropriate partition. Please have a look at the "Perfect Setup" tutorial for Fedora, it's shown there. It can be any password you want. It's not important.
here is /etc/fstab content: # This file is edited by fstab-sync - see 'man fstab-sync' for details /dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1 LABEL=/boot /boot ext3 defaults 1 2 /dev/devpts /dev/pts devpts gid=5,mode=620 0 0 /dev/shm /dev/shm tmpfs defaults 0 0 /dev/proc /proc proc defaults 0 0 /dev/sys /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 /dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0 /dev/hda /media/cdrom auto pamconsole,exec,noauto,managed 0 0 I did add it before!!! Where to check ¿Any errors in the mail log? Thanks
After a soft reboot I got quota working, please check if everything seems to be ok: [root@morticia ssl]# touch /aquota.user [root@morticia ssl]# touch /aquota.group [root@morticia ssl]# chmod 600 /aquota.* [root@morticia ssl]# mount -o remount / [root@morticia ssl]# quotacheck -avugm quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't save quota settings... quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Can't save quota settings... quotacheck: Scanning /dev/mapper/VolGroup00-LogVol00 [/] done quotacheck: Checked 8855 directories and 98024 files [root@morticia ssl]# quotaon -avug /dev/mapper/VolGroup00-LogVol00 [/]: group quotas turned on /dev/mapper/VolGroup00-LogVol00 [/]: user quotas turned on [root@morticia ssl]# But [root@morticia ssl]# telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. Connection closed by foreign host. [root@morticia ssl]# Where I can check mail logs??
Then you had forgotten before to remount /: Code: mount -o remount / That's ok. The mail log is in the /var/log directory.
Thanks again, here is content for maillog Feb 8 16:42:43 morticia sendmail[1999]: alias database /etc/aliases rebuilt by root Feb 8 16:42:44 morticia sendmail[1999]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total Feb 8 16:42:45 morticia sendmail[2004]: starting daemon (8.13.4): SMTP+queueing@01:00:00 Feb 8 16:42:46 morticia sm-msp-queue[2009]: starting daemon (8.13.4): queueing@01:00:00 Feb 8 17:48:21 morticia sendmail[3983]: k18MmK0K003983: from=root, size=814, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost Feb 8 17:48:23 morticia sendmail[3985]: k18MmMw5003985: from=<[email protected]>, size=1126, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=morticia.educandote.net [127.0.0.1] Feb 8 17:48:23 morticia sendmail[3983]: k18MmK0K003983: to=root, ctladdr=root (0/0), delay=00:00:03, xdelay=00:00:02, mailer=relay, pri=30814, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k18MmMw5003985 Message accepted for delivery) Feb 8 17:48:25 morticia sendmail[3986]: k18MmMw5003985: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:02, xdelay=00:00:01, mailer=local, pri=31370, dsn=2.0.0, stat=Sent Feb 9 07:48:13 morticia sendmail[2077]: alias database /etc/aliases rebuilt by root Feb 9 07:48:13 morticia sendmail[2077]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total Feb 9 07:48:14 morticia sendmail[2081]: starting daemon (8.13.4): SMTP+queueing@01:00:00 Feb 9 07:48:14 morticia sm-msp-queue[2087]: starting daemon (8.13.4): queueing@01:00:00 Feb 9 08:53:39 morticia sendmail[3803]: k19DrcAC003803: from=root, size=6276, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost Feb 9 08:53:39 morticia sendmail[3804]: k19Drdje003804: from=<[email protected]>, size=6588, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=morticia.educandote.net [127.0.0.1] Feb 9 08:53:39 morticia sendmail[3803]: k19DrcAC003803: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=36276, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k19Drdje003804 Message accepted for delivery) Feb 9 08:53:40 morticia sendmail[3806]: k19Drdje003804: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=local, pri=36832, dsn=2.0.0, stat=Sent Feb 9 12:34:08 morticia postfix/postfix-script: starting the Postfix mail system Feb 9 12:34:08 morticia postfix/master[32050]: daemon started -- version 2.2.2, configuration /etc/postfix Feb 9 12:35:00 morticia postfix/smtpd[32083]: fatal: unknown smtpd_sasl_security_options value "noanonnymous" in "noanonnymous" Feb 9 12:35:01 morticia postfix/master[32050]: warning: process /usr/libexec/postfix/smtpd pid 32083 exit status 1 Feb 9 12:35:01 morticia postfix/master[32050]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Feb 9 16:59:20 morticia postfix/smtpd[1923]: fatal: unknown smtpd_sasl_security_options value "noanonnymous" in "noanonnymous" Feb 9 16:59:21 morticia postfix/master[32050]: warning: process /usr/libexec/postfix/smtpd pid 1923 exit status 1 Feb 9 16:59:21 morticia postfix/master[32050]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Feb 9 17:26:10 morticia postfix/postfix-script: starting the Postfix mail system Feb 9 17:26:10 morticia postfix/master[2028]: daemon started -- version 2.2.2, configuration /etc/postfix Feb 9 17:32:06 morticia postfix/smtpd[2702]: fatal: unknown smtpd_sasl_security_options value "noanonnymous" in "noanonnymous" Feb 9 17:32:07 morticia postfix/master[2028]: warning: process /usr/libexec/postfix/smtpd pid 2702 exit status 1 Feb 9 17:32:07 morticia postfix/master[2028]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Feb 9 17:33:39 morticia postfix/smtpd[2720]: fatal: unknown smtpd_sasl_security_options value "noanonnymous" in "noanonnymous" Feb 9 17:33:40 morticia postfix/master[2028]: warning: process /usr/libexec/postfix/smtpd pid 2720 exit status 1 Feb 9 17:33:40 morticia postfix/master[2028]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Feb 9 17:44:29 morticia postfix/smtpd[2876]: fatal: unknown smtpd_sasl_security_options value "noanonnymous" in "noanonnymous" Feb 9 17:44:30 morticia postfix/master[2028]: warning: process /usr/libexec/postfix/smtpd pid 2876 exit status 1 Feb 9 17:44:30 morticia postfix/master[2028]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Feb 9 19:17:59 morticia postfix/postfix-script: starting the Postfix mail system Feb 9 19:17:59 morticia postfix/master[2028]: daemon started -- version 2.2.2, configuration /etc/postfix
You made a typo in your /etc/postfix/main.cf. Please run Code: postconf -e 'smtpd_sasl_security_options = noanonymous' and restart Postfix.
Thanks for your help!! I did change error and typed: It's works like a charm!!! now am moving on to next step thanks a lot. Now i got some errors: Those are in the perl.txt file!!! It seems to be that every step got some to do!!