Giter Site home page Giter Site logo

Comments (5)

slicer69 avatar slicer69 commented on July 17, 2024

When running a command which requires arguments, try running "doas -- ls". The -- indicates an end to doas's argument list and makes sure any arguments given after the "--" are for the target program.

from doas.

nickpelone avatar nickpelone commented on July 17, 2024

That's a breakage with upstream...
(as tested with OpenBSD 5.9)

Don't mean to be irritating, just pointing it out. Sorry it took me so long to respond, been very busy past week or so!

nick@testmachine:[~]:$ uname -a
OpenBSD testmachine.my.domain 5.9 GENERIC#1761 amd64
nick@testmachine:[~]:$ cat /etc/doas.conf
permit nopass nick as root cmd ls args -l
nick@testmachine:[~]:$ doas ls
doas: Operation not permitted
nick@testmachine:[~]:$ doas ls -l
total 368220
-rw-------  1 nick  nick        268 Aug 25 16:45 .Xauthority
-rw-r--r--  1 nick  nick         87 Feb 26 03:07 .Xdefaults
drwxr-xr-x  3 nick  nick        512 Aug  2 07:39 .bundle
drwx------  3 nick  nick        512 Jun 24 12:25 .cache
drwx------  2 nick  nick        512 Jun 24 12:26 .config
-rw-r--r--  1 nick  nick        773 Feb 26 03:07 .cshrc
-rw-r--r--  1 nick  nick        103 Feb 26 03:07 .cvsrc
drwxr-xr-x  4 nick  nick        512 Aug  2 07:39 .gem
-rw-r--r--  1 nick  nick         61 Aug  2 07:31 .gitconfig
drwx------  3 nick  nick        512 Jun 24 12:26 .local
-rw-r--r--  1 nick  nick        359 Feb 26 03:07 .login
-rw-r--r--  1 nick  nick        175 Feb 26 03:07 .mailrc
drwx------  4 nick  nick        512 Jun 24 12:25 .mozilla
-rw-r--r--  1 nick  nick        588 Jun 24 08:04 .profile
drwx------  2 nick  nick        512 Jun 24 08:02 .ssh
drwxr-xr-x  3 nick  nick        512 Aug  3 08:20 .vim
-rw-------  1 nick  nick       6184 Aug 25 16:46 .viminfo
-rw-r--r--  1 nick  nick       1331 Jun 24 08:02 .vimrc
-rw-------  1 nick  nick          0 Jun 24 11:34 .xsession-errors
drwxr-xr-x  2 nick  nick        512 Jun 24 12:25 Desktop
-rw-r--r--  1 nick  nick  188405432 Jun 27 07:33 install59.fs
-rw-r--r--  1 nick  nick         21 Jun 24 08:07 test.pf.conf

from doas.

slicer69 avatar slicer69 commented on July 17, 2024

I just tired the "ls -l" example given on FreeBSD using the doas port and it worked exactly the same way the OpenBSD version did in the example given above. I cannot duplicate the difference in behaviour.

from doas.

Duncaen avatar Duncaen commented on July 17, 2024

You need to prefix the optstring with + in glibc to get posix correct option parsing as opendoas does it.

from doas.

slicer69 avatar slicer69 commented on July 17, 2024

I have updated the documentation to make it clearer that -- should be used on systems where the dash is ambiguous.

from doas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.