Re: File permissions problem



On Sat, Aug 16, 2008 at 7:27 PM, NoOp <glgxg@xxxxxxxxxxxxx> wrote:

On 08/16/2008 03:10 PM, Joep L. Blom wrote:
Ansgar Burchardt schreef:
Hi,

"David McNally" <david3333333@xxxxxxxxx> writes:
I'm trying to be able to access and edit files that aren't in my home
folder,
but the computer says that I don't have permission to access the files.

I'm the only person that has ever used this computer.

Files not in /home usually belong to root (the administration account),
some belong to other system accounts. On Ubuntu you can not directly
log in as root, but you can use sudo to access the root account.
See [1] for an explanation how to do this.

Regards,
Ansgar

[1] https://help.ubuntu.com/community/RootSudo

login as root:
user$"su -"
passwd:"password"

Then you are root. ( always make a root window in xterm.).
Joep



Please don't advise an apparently new user to create a root account.
It's not necessary, and can be dangerous for someone that is still
learning how to edit non-home (root) files.

@David: please read the page provided by Ansgar
(https://help.ubuntu.com/community/RootSudo) so that you have an
understanding of the sudo command. To edit your root configuration files
from the standard text editor:

From the terminal (Applications|Accessories|Terminal):

gksu gedit <filename>

(at the password prompt enter your standard user password)

From the desktop:
Alt-F2
gksu gedit <filename>

From Nautilus (the 'Places' file browser/manager)
Alt-F2
gksu nautilus

(you are now in a 'sudo' mode of Nautilus, so you can click on file to
open in the text editor. *Caution* in this mode you can also delete and
modify critical system files and totally screw up your system - this is
akin to being able to go into the Windows directory on Windows and
modify or delete any files there, so use with caution if you do not know
what you are doing!!).

You can also install the Nautilus administrator add-on which enables you
to have a menu option in your standard nautilus to edit a file in
adminstrator mode. To install - open the terminal and enter:

sudo apt-get install nautilus-gksu

Log out and log back in. Now open Nautilus (Places) and go to the root
configuration file that you wish to modify (example: /etc/hosts), right
click the file and select 'Open as administrator', enter your password
at the prompt. Nautilus will then open the file in the text editor in
'sudo' mode so that you can modify, change it, and save it. The text
editor will also automatically create a backup file (/etc/hosts~) that
you can go back to if you mess something up.


I would tend to agree with NoOp. New users to Ubuntu who want to modify
files which belong to configurations of the system or application
environments should be followed by "why do you want to (specifically)?" and
"what are you trying to accomplish?" . Simply put, the best (and worst)
attribute of any *NIX system has always been - You can do whatever you want;
but you need to know what you're doing. There are a good many files in the
system that you can modify and will only cause you headaches. There are a
number of others which will upset the system itself, which a new user will
find far less forgiving than a BSoD. Those of us who are more experienced
should predicate assistance with finding out the level of experience of
new(er) users, and should render assistance accordingly, if possible.

Jack







--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Relevant Pages

  • Re: File permissions problem
    ... Files not in /home usually belong to root, ... but you can use sudo to access the root account. ... (you are now in a 'sudo' mode of Nautilus, so you can click on file to ... modify or delete any files there, so use with caution if you do not know ...
    (Ubuntu)
  • Re: File permissions problem
    ... log in as root, but you can use sudo to access the root account. ... (you are now in a 'sudo' mode of Nautilus, so you can click on file to ... modify or delete any files there, so use with caution if you do not know ...
    (Ubuntu)
  • Re: Right Click - Edit as root
    ... Wade Smart wrote: ... Two things I already miss are the numlockx and Right Click edit as root script. ... then start up nautilus as root. ... hold down the Alt key and press the F2 key at the same time. ...
    (Ubuntu)
  • Re: command lsof
    ... On Mon, 2005-04-04 at 21:48 -0500, Charles Malespin wrote: ... Nautilus still has the file open. ... > install ndiswrapper again to get my wireless card running. ... Actually the trailing hyphen tells su to use the root user's environment ...
    (Fedora)
  • Re: user privledges
    ... > redhat 7.2 i created a user account for myself to use on a daily basis. ... > fare i have just been su - and entering the root pass. ... it started but would not install because i did ... sofware to /opt/musicmatch as a normal user. ...
    (comp.security.unix)