Comments (8)
It looks like there is no newline character at the end of the first line of the doas.conf. Just open the file again and press Enter at the end of the line. Then save the doas.conf file. There is a reference to this requirement in the doas.conf manual page:
Entries in the doas.conf file must end with a newline character to indicate where a
rule ends. Most text editors will add a newline or end of line character for you,
however not all tools do. Please make sure each rule in your doas.conf file ends
with a newline (Enter) character. Otherwise syntax checks will fail with an error
"syntax error at line..."
from doas.
Thanks for letting us know. It sounds like there is a syntax error in the doas.conf file. Could you post the contents of the /usr/local/etc/doas.conf file here?
from doas.
What i have on the doas.conf file is this:
permit tiago as root
Thanks for the quick response!
from doas.
Assuming your username is tiago, then this line looks correct. There are a few things which could be happening here.
-
There is a special character like a Tab in the line which is not visible. Creating a fresh doas.conf file can fix this.
-
The doas.conf file has been created where doas is not looking for it. For instance, if you created your file as /etc/doas.conf, but doas is looking in /usr/local/etc/doas.conf for its configuration.
-
Please make sure root has read access to the doas.conf file.
from doas.
Thanks, after deleting the /usr/local/etc/doas.conf and creating a new one in /etc/doas.conf and in /usr/local/etc/doas.conf with the permission root: read & write, gives this message doas: /usr/local/etc/doas.conf is writable by group or other
but if i change to root: read only gives again doas: syntax error at line 1
i'm not sure where is the problem i tried creating a new one but gives the same problem, thanks for responding, i attached a print with the problem and yes my username is tiago.
from doas.
Thank you for posting this. Would you please post the output of the two following commands:
ls -l /usr/local/bin/doas
and the command
sudo cat /usr/local/etc/doas.conf
Thank you
from doas.
Here is the output:
from doas.
Thanks the command is now working like a charm, probably mousepad doesn't add a newline, thank you so much!
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
- doas(1) Arguments like in sudo(8) HOT 5
- doas should check transitive writability of parent directories of config file HOT 3
- Allow multiple password attempts. HOT 1
- doasedit ignores mktemp, cp errors and can't handle filenames starting with - HOT 3
- doasedit: copy to temporary fails if the path is absolute HOT 3
- `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.