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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to use postmap to create a file to use for my virtual aliases for Postfix which I'm using Webmin to administer with. But whenever I issue the command postmap /etc/postfix/virtual I get the following error: -bash: /usr/sbin/postmap: Permission denied
I'm using Fedora 8 and logged in as root. Any ideas on this matter?
I'm stumped because I've tried this on another machine and it's worked perfect. I've installed Postfix via yum and also through the webmin interface itself (also uses the yum command), but also installed the Postfix module on the webmin website.
Are you somehow running the postmap command from webmin, or from a terminal session?
Trying to run this through SSH as I'm trying to setup the virtual db in order for Webmin to setup mailboxes in it's Virtualmin module when I create new sites. At the moment Virtualmin gives an error that it can't create the virtual mailboxes when I create a new site.
Mail for domain failed! : Failed to regenerate table /etc/postfix/virtual: at ../web-lib-funcs.pl line 982.
I just used the basic generated layout in the Fedora installation.
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
I appear to have solved this issue. I created a new basic install of Fedora 8, installed Postfix via Yum and still no luck with postmap, still getting permission errors. So I downloaded and installed Fedora 9 and success, it worked perfectly. Not sure why I received an error with a Fedora 8 install.
I'd pu my money on an SELinux issue. Next time you have a similar problem, try rutning SELinux off with "setenforce 0", try the command and turn it back on with "setenforce 1"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.