Results 1 to 4 of 4

Thread: Can't execute own file!

  1. #1
    Join Date
    Mar 2008
    Beans
    176
    Distro
    Ubuntu 10.04 Lucid Lynx

    Can't execute own file!

    I have a user on my server that can't execute files that are under his home directory. The file permissions are even set to 755. I also set the files ownership and group to the user. The file is executable, but only to root. How can I make the file executable for my user?

  2. #2
    Join Date
    Jun 2007
    Beans
    1,745

    Re: Can't execute own file!

    Code:
    chmod u+x file
    although by the sounds of it the file is already executable, I'd check how it's being run, may be that the file calls for something else that only root has access to.

  3. #3
    Join Date
    Mar 2008
    Beans
    176
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can't execute own file!

    It is already executable. For some reason this user can't execute anything anywhere

  4. #4
    Join Date
    Mar 2008
    Beans
    176
    Distro
    Ubuntu 10.04 Lucid Lynx

    [SOLVED] Re: Can't execute own file!

    Found the problem. Had to add the following lines

    groupadd user
    usermod -g user user
    chown root.user ~user/bin/user
    chmod 4750 ~user/bin/user

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •