LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-17-2020, 10:51 PM   #16
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351

Quote:
Originally Posted by volkerdi View Post
If there are services that are part of Slackware, please let me know which ones are affected so that I can fix them.
I've been sneaking fixes for those in for a couple of years now in preparation for when you'd finally give in on the /var/run --> /run bindage, so there shouldn't be any ;-)
 
1 members found this post helpful.
Old 02-17-2020, 10:53 PM   #17
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Re bind, easiest solution was to put this in /etc/default/named:
Code:
NAMED_OPTIONS="-u named -4"
mkdir -p /var/run/named
chown named:named /var/run/named /var/named
That's what we've done for a while on a couple of DNS servers here...
 
Old 02-18-2020, 02:17 AM   #18
lonestar_italy
Member
 
Registered: Nov 2010
Location: Italy
Distribution: Slackware64-current
Posts: 169

Original Poster
Rep: Reputation: 67
Quote:
Originally Posted by rworkman View Post
Re bind, easiest solution was to put this in /etc/default/named:
Code:
NAMED_OPTIONS="-u named -4"
mkdir -p /var/run/named
chown named:named /var/run/named /var/named
That's what we've done for a while on a couple of DNS servers here...
oh perfect! Thanks Robby!
 
Old 02-18-2020, 10:00 AM   #19
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 479

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Quote:
n/bind-9.14.10-x86_64-2.txz: Rebuilt.
rc.bind: make sure it works with a non-root user specified in $NAMED_OPTIONS.
Thanks to Luigi Trovato.
Perfect! Thanks Pat!
 
Old 02-18-2020, 10:11 AM   #20
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by rworkman View Post
It doesn't do just as well. I did a lot of initial testing on this starting several years ago, and while it was indeed rare, there were cases where things didn't like the symlink being there. One of them something in the core distribution, but I cannot for the life of me recall what it was.
That sounds somewhat apocryphal, and I cannot see how having /var/run as a symlink to /run (where tmpfs is to be mounted on /run), could cause problems since the symlink is in the absence of explicit deletion permanently on the file system. If a bind mount works (which would be effected on every boot) where a symlink doesn't it may possibly evidence a timing bug in slackware's init scripts but that sounds somewhat improbable. In any event, other distributions I have come across have /var/run as a symlink to /run and as it happens those using systemd are required to do so. (That is an aside: please let's not start a systemd thread.)
 
Old 02-18-2020, 11:20 AM   #21
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
In other distros /var/run has been sym linked to /run for many years. This is standard practice among most distros. If there are any issues in Slackware then users need not look far to see how others resolved the problems.

I've been sym linking on Slackware for many years. While I don't run the full array of possible daemons or services, I never once ran into any issue.
 
Old 02-18-2020, 07:29 PM   #22
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
After a bit of research, it was libnih and cgmanager that didn't play nicely with the symlink. The reason other distros don't have the problem is that they're not using those - they're using systemd instead (or they patched those to use /run directly instead of /var/run, which was not an option at all at the time for us).
 
Old 02-19-2020, 02:31 AM   #23
anon074
Member
 
Registered: Nov 2015
Posts: 36

Rep: Reputation: Disabled
Quote:
Originally Posted by volkerdi View Post
Any chance you're starting named with -u <some-non-root-user>?
Why are the permissions of /var/named now changed recursively? I start named with -u named -t /var/named. There are a lot files below my /var/named directories that musn't belong to the named user. Let's see if I can chroot to another directory. But the Slackware init scripts are becoming as complex and at the same time inflexible as the old Debian init scripts.
 
1 members found this post helpful.
Old 02-21-2020, 11:13 PM   #24
anon074
Member
 
Registered: Nov 2015
Posts: 36

Rep: Reputation: Disabled
Quote:
Originally Posted by voegelas View Post
Why are the permissions of /var/named now changed recursively? I start named with -u named -t /var/named. There are a lot files below my /var/named directories that musn't belong to the named user. Let's see if I can chroot to another directory. [...]
Sorry for the above comment. Chowning /var/named to the named user is fine. Only the recursive bit would have been a problem. I wasn't sure whether /var/named is hardcoded somewhere. It isn't. I use the directory /var/named-chroot now in my setup and this works without problems.
 
Old 02-22-2020, 01:13 PM   #25
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,464

Rep: Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373
Quote:
Originally Posted by voegelas View Post
Sorry for the above comment. Chowning /var/named to the named user is fine. Only the recursive bit would have been a problem. I wasn't sure whether /var/named is hardcoded somewhere. It isn't. I use the directory /var/named-chroot now in my setup and this works without problems.
No need to be sorry - I still think you were correct that the rc.bind script had no business messing with the file ownerships in /var/named like it was. If named is going to be picky about ownership and not start (when it's been configured in a non-standard and not recommended way), let the admin figure out how to fix it.
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Reducing writes to SSD: mounting /var (and others) on RAM disks (tmpfs). sysfce2 Slackware 7 08-26-2011 02:00 AM
/etc/fstab "tmpfs /tmp tmpfs defaults 0 0" ramfs?! HOW? xcislav Linux - General 2 06-04-2011 03:03 AM
Ph&#7909;c h&#7891;i d&#7919; li&#7879;u b&#7883; m&#7845;t???, c&#7913; pollsite General 1 06-27-2005 12:39 PM
Mounting /var/log as a tmpfs mr666white Linux - Laptop and Netbook 2 12-06-2004 08:07 PM
Gotta love those &#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:04 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