Re: File Permissions / root



Ray Canzius wrote:
> Gday All,
>
>
> My problem is that although I have logged in and am the only person
> using computer, and I also installed software, when it asked for
> name,id,passwords etc I put myself as user (nobody else), I have looked
> at viewing and changing files. Every time I try to write file to hard
> drive it tells me I do not have permission, when I look at who is the
> owner of file(s) it tells me that the owner is root.
>
> OK, what have I done wrong, has there anything I may have missed at
> install, and how do I change this ?

The way Ubuntu (Linux/Unix) works is that most "system administration" type things
like installing software and modifying system files can only be done by the administrator
user (root). When you need to change these things you can use the 'sudo' command which
lets you become root temporarily. You might be asked for your password as a check.
Some administrative commands in menus (eg Synaptic) can run sudo automatically when they start.

For your own files and documents, your "home" directory in /home/yourname and the Documents
folder can be used without being root. Also temporary files in /tmp can be changed as a
normal user.

So for documents or files you create and modify yourself, put them in Documents or your home directory.

For changing system settings, use sudo.

Normally when you install software it goes in the system area and so you need to be the
administrator to set it up, otherwise you will get lots of 'Permission denied' errors.

You can also install software in your home directory as a normal user, but that is not normally
necessary or preferable.

I hope this makes things clearer.

Cheers,
Toby

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: how to install software locally?
    ... You can also use the unix convention of establishing yourself as superuser (i.e. root) by giving root a password. ... *sudo passwd root*. ... As normal user you CAN'T install software using apt. ...
    (Ubuntu)
  • Re: Draft I: Why You Dont Want to Install Software
    ... All these functions should be under the control of the system administrator. ... > idea of contacting your network consultant to install software probably ... > could install software. ... Windows 9x was notoriously unstable and fragile. ...
    (microsoft.public.windows.server.sbs)
  • Re: Draft I: Why You Dont Want to Install Software
    ... that evil IT guy-- the party pooper who runs his network with an iron fist. ... > been made members of the 'local administrator' group. ... >> idea of contacting your network consultant to install software probably ... >> could install software. ...
    (microsoft.public.windows.server.sbs)
  • Re: Users installing software
    ... when I go in as the Administrator and install some software for the user, then the user logs in and A) the software is not there, only installed for the current user when installed. ... Hence my need to allow a user to install software on there local machine. ... > to know what is on each of the work stations and it would be extremely ...
    (microsoft.public.win2000.active_directory)
  • [SLE] Re: root screen doesnt appear when I switch to root in KDE
    ... You don't actually need to log in as root to install software (or, indeed, to ... To install software, as you norma user you can run KPackage (or your preferred ... run YaST - this will ask for the root password before ... It's also faster than logging in a whole KDE session. ...
    (SuSE)