LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2004, 08:56 AM   #1
SurfCHimp
LQ Newbie
 
Registered: Sep 2004
Posts: 26

Rep: Reputation: 15
adding a stuff to a folder i don't have permission to


I am using SuSE 9.1

I have a lod of codecs I wish to add to /usr/local/lib/codecs folder but i keep getting told i do not have permission to this folder.

I am the sole user of this machine so I assigned all the passowrds ( which I know) but I can't seem to figure out how to do this) PLEASE HELP
 
Old 09-11-2004, 09:12 AM   #2
twilli227
Member
 
Registered: May 2003
Location: S.W. Ohio
Distribution: Ubuntu, OS X
Posts: 760

Rep: Reputation: 30
Open up a terminal window and type:
su - (press enter)
root password (enter)

you will now be the root user and should be able to access the folder. When you are done, just type "exit" and press enter to exit.
 
Old 09-11-2004, 09:16 AM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Hi again SurfCHimp!

Basically, on a *nix system, we have one user called "root". He is the super-user and can install and remove everything as he pleases. More or less like the administrator in a WinNT-based system.

Needless to say, it's dangerous to play around as root. It's highly recommended to have a normal user. If you've followed SuSE's installation correct, you've already an ordinary user. Always, I mean it, always login as a normal user.

Let's say we have an user called "chimp". Chimp can run nearly all applications (not daemons though) and make all changes he wants inside /home/chimp only.

I assume that you are running as "chimp", so it's natural that you can not do anything outside your home directory. If you need to install/remove programs, you've to be root. You don't need to log out and in again to become root. Simply open a terminal and type "su". You'll be asked for the "root" password.

Note that your prompt has now changed from:

[localhost@localhost$]:

to

[localhost@localhost#]:

The dollar ($) symbol represents an ordinary user, while the hash (#) the root user. It can happens that, in a system with multiple users, you even forget which user you are. Type:

whoami

to know who you are .

Now, since you know how to become the super-user, you are ready to read this thread:

http://www.linuxquestions.org/questi...threadid=45094

to learn how to install programs in linux. You'd need to learn some commands as well:

http://www.linuxdevcenter.com/linux/cmd/

to navigate through the terminal. The most used are:

cp = copy a file/folder
mv = move a folder/file
rm = delete a folder/file
mkdir = creates a directory
ls = list of files
cd = get into a directory
cd .. = go one directory up

Pretty much as in the old DOS fashion way .

So now you know how to move your codecs. Assuming you have the codecs in /home/chimp/temp/codecs, do:

su
password:
mkdir /usr/local/lib/codecs
cp /home/chimp/temp/codecs *.* /usr/local/lib/codecs

Good luck!
 
Old 09-11-2004, 11:58 AM   #4
SurfCHimp
LQ Newbie
 
Registered: Sep 2004
Posts: 26

Original Poster
Rep: Reputation: 15
thanx once again, problem I was getting was that I was typing move "file" TO directory

changed move to mv and removed the TO and all worked fine
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how create a folder/permission rusmi Linux - Newbie 7 02-11-2005 10:04 AM
Permission to write to folder Garoth Linux - Software 1 10-09-2004 11:41 PM
permission denied if I want to create new folder dodo1983 Linux - Newbie 2 08-14-2004 10:46 PM
Permission denied opening a folder phoenixofwater Linux - Newbie 3 07-26-2004 09:45 PM
Folder permission javamdk Slackware 9 07-07-2004 11:26 AM


All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration