Announcement

Collapse
No announcement yet.

How do I get permissions in the directory files?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I get permissions in the directory files?

    Seems I don"t have any kind of access permissions to the directory files. If I run ls or try creating a file I just get "Permission denied". How do I fix this? Also, how do I become root in Kubuntu 6.06. I"ve tried sudo su, su -, su -i. Sometimes it asks for my password, but when I enter it, it say "Authenication failure" Thanks.

    #2
    Re: How do I get permissions in the directory files?

    1. If you want to create a file in your /home directory, no problem. To create a folder on the / directory you have to be root. To do things as root, usually you just need to put sudo in front of the command.

    mkdir /home/john/MyMp3 (root not needed, it's my directory)
    sudo mkdir /usr/share/pixmaps/newimage.xmp (root access is needed to write to the / directory)


    NOTE: If I do "sudo mkdir /home/john/MyMP3" then it is root's directory. I can probably access it, but I won't be able to modify it (as a user).

    2. Some commands are usable only by root.

    lspci (command not found)
    sudo lspci (all kinds of useful output)

    3. There are two kinds of apps: console-based and gui. The type of app determines how you will launch it as root. For example, sometimes you have to edit files. If you use nano

    sudo nano /path/file

    If you use kate

    gksudo kate /path/file

    The difference is that kate is has a graphical interface.

    HTH.

    john

    Comment

    Working...
    X