LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-15-2006, 09:02 AM   #1
Omnutia
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 7.10
Posts: 16

Rep: Reputation: 0
unable to acsess localhost and other root related problems


Im trying to get to grips with linux at the same time as several other things and managed to install LAMP quickly (synaptic is the best thing since sliced silicon) which i plan to use for testing the content management system Drupal but once all the programs are installed I go to the /var/www/ folder and try to move the drupal files in and I get my old nemesis "you do not have permission to do that".
Years of windows use has left its mark so I was wondering who to allow myself the root privileges or at least allow me to write to the folder (preferably in a terminal script of 10-20 lines or less) if not can I get a link to something explaining the significance of having a nonexistant user to do all.
Previously I have set a root password then used the "sudo root" coommand to do things like mount drives but when I give the correct password it gives me "unrecognised command" and continues to when I type "sudo root" then says I haven't permission when I try again.

So is there any way to confer root privilages (at least for writing dirs and mounting discs) or at least stopping the error again.

Thankyou for your time
 
Old 06-15-2006, 09:19 AM   #2
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: Disabled
Quote:
Originally Posted by Omnutia
Previously I have set a root password then used the "sudo root" coommand to do things like mount drives but when I give the correct password it gives me "unrecognised command" and continues to when I type "sudo root" then says I haven't permission when I try again.

So is there any way to confer root privilages (at least for writing dirs and mounting discs) or at least stopping the error again.

Thankyou for your time
I didn't get your requirement well.
a. Read the 'man' for 'sudo'.
It takes the command as an argument and tries to execute as root user.
So "sudo root" is trying to execute the command "root" as a root user, which is wrong.
You should try like "sudo ls" etc.

Probably to change the permission you can try:

sudo chmod +x filename
 
Old 06-15-2006, 09:25 AM   #3
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
in a terminal you can use su (switch user) which without a user as an argument defaults to root)

Code:
man su
from there you can either launch a GUI file manager, or use the terminal, and cp -r /directory/to/copy /target/directory

Code:
man cp
to change permissions of things (bad idea to give normal users r/w/x permissions to things such as apache directories, big security risk, use chmod

Code:
man chmod
 
Old 06-16-2006, 04:00 PM   #4
Omnutia
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 7.10
Posts: 16

Original Poster
Rep: Reputation: 0
Exellent! got it to run "sudo nautilus" which makes everything a lot easier. Im now about 75% there to getting my linux partition to do everything windows does (though, better faster and more simply).
Big thumbs up to everyone!
 
  


Reply



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
ksysguard unable to connect to localhost runcis Mandriva 5 03-04-2005 11:00 AM
Unable to access port 80 from anywhere but localhost hecter Linux - Security 1 10-07-2004 08:12 AM
unable to rsh to the localhost majalee Linux - Networking 0 08-20-2004 01:37 AM
Changing root@localhost to root@domain.com Stingreen Linux - General 14 12-17-2002 06:21 PM
unable to connect with ssh except to localhost Yaukuai Linux - Software 0 09-30-2001 06:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 PM.

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
Open Source Consulting | Domain Registration