#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Post Problem Permission denied cp -r


    Hi
    I am administrator in unix
    I want make backup folder and file in root directory
    I use instruction Cp -r , But the system pear problem

    cp: cannot create regular file : Permission denied

    Can someone explain me what am I doing wrong??? please...

    find other instruction backup folder and file in root directory or what ?

    Thank you.....
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,486
    Rep Power
    1752
    What command, exactly, are you entering, and what is your working directory at the time?
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2006
    Posts
    859
    Rep Power
    388

    Thumbs down


    Originally Posted by xactor
    Hi
    I am administrator in unix
    I want make backup folder and file in root directory
    I use instruction Cp -r , But the system pear problem

    cp: cannot create regular file : Permission denied

    Can someone explain me what am I doing wrong??? please...

    . . . Etc . . .
    You need to login as "root" to be able to create file in root directory
    -- or --
    You need to have "sudo" privileges.

    PS: You claim to be unix administrator and do not know this?
    Please ask your boss to fire you.

    Comments on this post

    • aitken325i agrees
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Question


    thank you to reply

    Can you expansion "sudo" it maybe this problem

    You need to have "sudo" privileges.
  8. #5
  9. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2006
    Posts
    859
    Rep Power
    388

    Cool


    Originally Posted by xactor
    thank you to reply

    Can you expansion "sudo" it maybe this problem
    SYNOPSIS
    sudo -V | -h | -l | -L | -v | -k | -K | -s | [ -H ] [-P ] [-S ] [ -b ] | [ -p prompt ] [ -c class|- ] [ -a auth_type ] [ -u username|#uid ] command

    DESCRIPTION
    sudo allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file. The real and effective uid and gid are set to match those of the target user as specified in the passwd file (the group vector is also initialized when the target user is not root). By default, sudo requires that users authenticate themselves with a password (NOTE: by default this is the user's password, not the root password). Once a user has been authenticated, a timestamp is updated and the user may then use sudo without a password for a short period of time (5
    minutes unless overridden in sudoers).

IMN logo majestic logo threadwatch logo seochat tools logo