Possible Duplicate:
Redirecting stdout to a file you don’t have write permission on
I'm quite new to Linux and I have a permissions questions. I'm using Linux Mint.
If I go to /opt and do a $ echo hi > file it says permission denied.
If I try with sudo, like this $ sudo echo > file it says permission denied.
Isn't sudo to execute the command as superuser?
When I use tcpdump on centos 6, I got a permission denied error even when I was root. My command is like this:
sudo tcpdump -i eth0 -G 10 -w test.dmp port 80
i have tried with -Z root or -Z my_username but no luck
sudo tcpdump -i eth0 -Z root -G 10 -w test.dmp port 80
sudo tcpdump -i eth0 -Z myuser_name -G 10 -w test.dmp port 80
Does anybody know how to make it work?
I want to be able to run a command, it fails cause it doesn't have proper permissions. Then I can write "please" to sudo the command I just ran.
Here's what I want to do in the terminal:
$ run command
"you don't have access to do that"
$ please
"ran successfully"
I saw that !!
i screwed up big time.
I am newbie in Linux word. I want to implement a bosh server.
Because it is hard on Windows platform I decided to deploy it on a Ubuntu virtual machine via vmware. I made installation without problems. I followed the processes on this page.
Thankfully, that did it. I never knew about the su command. sudo is not asking me for a password.There really aren't any more details to post, anything starting with 'sudo' gives me the error (without anything else happening first).
In Ubuntu lightdm log-in screen, guest session can be logged in without a password. Although guest gets lower privilege and can’t run sudo command, you can remove it from login screen via following way.
Edit LightDM configuration file “/etc/lightdm/lightdm.conf”. This need root privilege, use sudo nautilus command to start file browser with super user.
Terminal won't input password when I/it asks for it.
I am trying to install wine through terminal.
I think that sudo is become a wide used command with Ubuntu, where you don’t even have a root password, before that probably it was used only in some data-centers to restrict access to some commands.
sudo allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file.