hi all, i'm new to FreeBSD and need something clarifying. i tried googling and the documentation but i'm still not quite sure on something
i am used to running commands in linux with elevated privileges like this:
eg
with FreeBSD i don't seem to be able to run single commands like that. i have added my account to the wheel group, and i can 'su' to the root environment from my account but trying to run:
results in 'bad su, su sorry' etc.
if i understand it correctly 'su'-ing is inadvisable as it leaves me in a root user state, and as i read at http://www.manpages.info/freebsd/su.1.htmlhere can affect user variables, so i am making changes to the root account rather than my own
so is there a way to run single commands like in my example?
thanks in advance
i am used to running commands in linux with elevated privileges like this:
Code:
sudo command filename.ext
eg
Code:
sudo edit textfile.txt
with FreeBSD i don't seem to be able to run single commands like that. i have added my account to the wheel group, and i can 'su' to the root environment from my account but trying to run:
Code:
su pkg_add -r xorg
results in 'bad su, su sorry' etc.
if i understand it correctly 'su'-ing is inadvisable as it leaves me in a root user state, and as i read at http://www.manpages.info/freebsd/su.1.htmlhere can affect user variables, so i am making changes to the root account rather than my own
so is there a way to run single commands like in my example?
thanks in advance