LinuxQuestions.org
Help answer threads with 0 replies.
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 11-15-2013, 11:37 PM   #1
re_nelson
Member
 
Registered: Oct 2011
Location: Texas, USA
Distribution: LFS-SVN, Gentoo-2.2 ~amd64, CentOS-6.5, Slackware64-current, FreeBSD-9.2-STABLE
Posts: 176

Rep: Reputation: Disabled
ZFS on Linux - Slackware 14.1 and setuid problems


This is probably a niche topic but perhaps someone has run into this strangeness. On real (not virtualized) hardware, I have two identical instances of Slackware64-current at my disposal.

The primary system is good old ext4 and my playpen system is ZFS-0.6.2. I don't spend much time in the latter experimental system but tonight I encountered something odd. As a regular user, I executed this command:

sudo ls /root

Here's the result:
Code:
sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
And running strace, more detail emerges:

Code:
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
Yet these things show no indication of suid being disabled:

Code:
zducky/slack on / type zfs (rw,relatime,xattr)
zducky/slack setuid   on   default
I think a handful of forum participants are using ZFS on Linux and any troubleshooting tips would be appreciated.
 
Old 11-16-2013, 07:26 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,599

Rep: Reputation: 516Reputation: 516Reputation: 516Reputation: 516Reputation: 516Reputation: 516
What are the permissions on /etc/sudoers? Should be 440.
What are the permissions on `which sudo`? Should be 4755.
 
Old 11-16-2013, 07:36 PM   #3
re_nelson
Member
 
Registered: Oct 2011
Location: Texas, USA
Distribution: LFS-SVN, Gentoo-2.2 ~amd64, CentOS-6.5, Slackware64-current, FreeBSD-9.2-STABLE
Posts: 176

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AlucardZero View Post
What are the permissions on /etc/sudoers? Should be 440.
What are the permissions on `which sudo`? Should be 4755.
Code:
-r--r----- 1 root root   3012 Nov  9 13:50 /etc/sudoers
-rwsr-xr-x 1 root root 134128 Nov  8 12:11 /usr/bin/sudo
The playpen experimental system using ZFS is a replica (via rsync -xHDa) of the main system, so all perms and ownership are preserved. Another oddity, perhaps related, is that using ncsd on the ZFS-based system returns nothing for all of the service definitions it maintains. On those occasions when I boot into the ZFS Slackware system, I just disable that glibc-provided name service caching daemon.
 
  


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
[SOLVED] ZFS and Slackware ReaperX7 Slackware 35 09-03-2012 08:58 AM
LXer: Article ZFS data integrity testing and more random ZFS thoughts. LXer Syndicated Linux News 0 05-15-2010 12:51 PM
ZFS Root / Boot into ZFS from a usb flash drive Kataku Solaris / OpenSolaris 1 07-15-2006 04:13 AM


All times are GMT -5. The time now is 04:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration