ROOT ....

Asked by Gianfranco

I Need to move a file from a file directory i made in my home.... to bin directory and I am denied access.
Other things I can't do because of permission. Like deleting a folder on desktop I created (don't know how) named files.
I can't run a bin file or program. Can't do much ....like it is frustrting to read all the information and comands and when I try most ask for me to sign in as root (Think i got that figured by now) or just don't alow me to enter. For sure I can't associate my bin file (realPlayer) with anything.... "can't find the file" is the latest reply in comand mode.... Any help ? i tried Linux before and i gave it up but, now i am desperate to get rid of MSWINDOWS...
Thank for any help
Gianfranco

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Wim van der Meer (wim-zaf) said :
#1

Hi Gianfranco,

Linux works differently as windows, so you'll need to change the way you used to do things. The first thing to understand is that when you are logged in you don't have administrator privilages, so you can't change anything in the bin directory, for example.

If you want to copy a file to a bin folder (or any toher system folder), you will need to start your command with the word "sudo", which stands for "super user do". Open a command window and type:

sudo cp file.txt /bin

to copy a file called file.txt in the current folder to the /bin folder. You will need to provide your password after you execute the command.

If you create a file on your desktop, you should be able to delete it since you are the owner of the file. If you want to see what permissions the file has, type

ls -l

Whatever the permissions are, you can always type

sudo rm file.txt

to remove a file.

File associateion also works different in Linux. Linux doesn't use file extensions to dertmine the file type, but looks at the contents of the file. If openeing the file doesn't work, could you copy-paste the exact command line output here?

Hope this helps.

Wim

Revision history for this message
José Carlos Prates Jr. (prates) said :
#2

hello all, its my frist comment.
well, i sometimes use a terminal program - super user mode. You can install in ADD/Remove applications im gnome menu.

best regards

Prates

Revision history for this message
Gianfranco (silksens) said :
#3

Sorry it is a directory not a file on my desktop. I will try some of the suggestions and see .
Thank you very much for reply.
Gianfranco

Revision history for this message
Richard Birnie (rbirnie-deactivatedaccount) said :
#4

If you are trying to copy a directory you will need to give cp the -R flag. This means recursive so it will copy the directory and any subdirectories. type 'man cp' to get more info on options for cp

Can you help with this problem?

Provide an answer of your own, or ask Gianfranco for more information if necessary.

To post a message you must log in.