Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2026 18:43:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 292845] zpool should report permissions error
Message-ID:  <bug-292845-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292845

            Bug ID: 292845
           Summary: zpool should report permissions error
           Product: Base System
           Version: 15.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: jschauma@netmeister.org

When trying to run zpool(8) to create a new pool as a non-root user, the
command returns a misleading error:

```
$ zpool create extra /dev/nda1 /dev/nda2
cannot use '/dev/nda1': must be a block device or regular file
```

The problem here is that the devices are not readable by the normal user. 
zpool(8) should differentiate between not having permission to access a disk
and the argument provided not being a block device.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292845-227>