LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-11-2018, 12:34 PM   #1
606166
LQ Newbie
 
Registered: Nov 2017
Location: Severna Park Maryland
Distribution: CentOS, Elementary OS, Windows 7
Posts: 15

Rep: Reputation: Disabled
Qmail ls -l /var/qmail giving "oot" owner


I am trying very desperately to make Qmail work and failing quite miserably.

ls -l /var/qmail
total 16
drwxr-sr-x. 2 1002 1003 154 Dec 10 13:16 alias
drwxr-xr-x. 2 oot 1003 4096 Feb 11 12:18 bin
drwxr-xr-x. 2 oot 1003 147 Dec 10 13:35 boot
drwxr-xr-x. 2 oot 1003 149 Feb 11 11:30 control
drwxr-xr-x. 2 oot 1003 4096 Dec 10 12:20 doc
drwxr-xr-x. 10 oot 1003 102 Dec 10 12:20 man
drwsr-xr-x. 11 1006 1003 118 Dec 10 12:20 queue
-rwxr-xr-x. 1 oot root 215 Jan 28 12:45 rc
-rw-r--r--. 1 oot root 204 Jan 28 12:44 rc-backup.txt
drwxr-xr-x. 5 oot root 62 Jan 28 13:01 supervise
drwxr-xr-x. 2 oot 1003 6 Dec 10 12:20 users


I know these can't be right because who the hell is oot and qmail is owned by 2107 and nofiles by 2108.
Originally I did have these as 1003 and I believe 1006 but had to change them and now am quite lost. For better visualization: https://imgur.com/a/GMw6W
 
Old 02-11-2018, 02:30 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Use ls -n to see the numeric uid for "oot" -- there must be a user id of oot for that to be displayed in the long listing.
How did you change the IDs? Why did you change them?
My qmail installation looks like this:
Code:
ls -l /var/qmail
total 32
drwxr-sr-x.  2 alias   qmail   4096 Oct  8 09:58 alias
drwxr-xr-x.  2 root    qmail   4096 Sep 28 11:17 bin
drwxr-xr-x.  2 root    qmail   4096 Sep 20 14:16 boot
drwxr-xr-x.  3 root    qmail   4096 Jan  2 14:44 control
drwxr-xr-x.  3 root    qmail   4096 Sep 25 17:49 doc
drwxr-xr-x. 10 root    qmail     94 Sep 20 14:15 man
drwxr-x---. 11 qmailq  qmail   4096 Sep 20 14:15 queue
-rwxr-xr-x.  1 root    qmail    412 Sep 25 16:51 rc
drwxr-s---.  3 simscan simscan   35 Feb 11 13:13 simscan
drwxr-xr-x.  9 root    root    4096 Aug 24  2013 supervise
drwxr-xr-x.  2 root    qmail      6 Sep 20 14:15 users
where qmail is uid 4096, qmailq is 8012, and simscan (which you don't appear to be using)is 502
BUT ownership of files within those directories varies quite a bit, so a manual change of ownership will probably have munged things up, in which case, starting over will probably be the easiest course.

Which installation/setup instructions did you use? Some are a bit misleading. All are semi-complicated.
I use and recommend John Simpson's patches and instructions here when Dan Bernstein's pages get confusing or obtuse. Besides, there are a couple of anomolies that need patching and John has done an excellent job managing and documenting those.
 
Old 02-11-2018, 02:49 PM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by 606166 View Post
I am trying very desperately to make Qmail work and failing quite miserably.

ls -l /var/qmail
total 16
drwxr-sr-x. 2 1002 1003 154 Dec 10 13:16 alias
drwxr-xr-x. 2 oot 1003 4096 Feb 11 12:18 bin
drwxr-xr-x. 2 oot 1003 147 Dec 10 13:35 boot
drwxr-xr-x. 2 oot 1003 149 Feb 11 11:30 control
drwxr-xr-x. 2 oot 1003 4096 Dec 10 12:20 doc
drwxr-xr-x. 10 oot 1003 102 Dec 10 12:20 man
drwsr-xr-x. 11 1006 1003 118 Dec 10 12:20 queue
-rwxr-xr-x. 1 oot root 215 Jan 28 12:45 rc
-rw-r--r--. 1 oot root 204 Jan 28 12:44 rc-backup.txt
drwxr-xr-x. 5 oot root 62 Jan 28 13:01 supervise
drwxr-xr-x. 2 oot 1003 6 Dec 10 12:20 users


I know these can't be right because who the hell is oot and qmail is owned by 2107 and nofiles by 2108.
Originally I did have these as 1003 and I believe 1006 but had to change them and now am quite lost. For better visualization: https://imgur.com/a/GMw6W
Like in your other thread, you need to follow exactly the instructions of LWQ,
Since you've messed up the installation very badly, I suggest you to delete anything you already done and start from scratch.
 
  


Reply



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
VSFTPD is giving me "cannot change directory:/var/$USER" RalfR Linux - Server 3 02-12-2013 11:17 PM
Need help with /var/qmail/supervise/qmail-smtpd/run coolamit78 Linux - Networking 4 02-02-2012 10:50 AM
Easy setup for "DNS, DHCP, squid, qmail, samba, etc " mobassir Linux - Software 8 08-18-2004 07:31 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
sshd error " bad owner or mode for /var/empty" piraxter Slackware 1 09-09-2003 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:57 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
Open Source Consulting | Domain Registration