Comments (5)
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.
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.
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.
You need to prefix the optstring with + in glibc to get posix correct option parsing as opendoas does it.
from doas.
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)
- how do you enable --with-timestamp HOT 1
- doas: Operation not permitted HOT 1
- Sudo askpass analog HOT 1
- Add -e known from sudo HOT 3
- persist is not effective if doas comes after /usr/bin/time. HOT 1
- [Git master] Vulnerable to privilege escalation using ioctls `TIOCSTI` and `TIOCLINUX` HOT 4
- doas: authentication failed on OPNsense HOT 10
- FreeBSD port: `vidoas` script has wrong default `doas.conf` file path HOT 4
- FreeBSD port: `stdout` of sub command got redirected to `stderr` HOT 5
- using 'nopass' still asking for password HOT 10
- doas: syntax error at line 1 HOT 8
- How can I make doas show symbols or asteriks when I type my password, since I want some feedback when typing my password? HOT 1
- `persist` option does not work HOT 1
- become POSIX compliant HOT 3
- `doas` hangs when doas command pipes into another doas command HOT 1
- Request for Pacstall Support HOT 1
- It doesn't seems to work in Solus HOT 1
- ´doas -u user´ results in "doas: Operation not permitted" HOT 5
- doas: syntax error at line 1 HOT 1
- How to uninstall/purge doas? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doas.