Find the answer to your Linux question:
Results 1 to 6 of 6
Hi guys I know it's probably silly what I am asking about, but I have few problems trying to change folder permission so server could upload photos via form. It ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    3

    Unhappy Trying to change permissions on files

    Hi guys I know it's probably silly what I am asking about, but I have few problems trying to change folder permission so server could upload photos via form.
    It is a dedicated server, with fedora 8 OS.
    when I type in to command line:
    "sudo chown apache folder_name"
    I get:
    sudo: sorry, you must have a tty to run sudo

    I read an article:
    "Configuring SUDO" here:
    fedorasolved.org/post-install-solutions/sudowhere they suggest to start with typing in this command:
    su --login -c 'visudo'

    but when I do so, that's what I get:
    > su --login -c 'visudo'
    su: warning: cannot change directory to /root: Permission denied
    visudo: /etc/sudoers busy, try again later

  2. #2
    Just Joined! TheBoogyMaster's Avatar
    Join Date
    Apr 2009
    Posts
    45
    try by conecting on root.

    Code:
    su
    if not juste type : sudo nautilus and do it graphicaly...


    look at this 2:
    Help -

  3. #3
    Linux Newbie
    Join Date
    Apr 2009
    Posts
    160
    See [SOLVED] sudo: sorry, you must have a tty to run sudo - Zimbra - Forums.

    Specifially:

    vi /etc/sudoers (EDIT: please use visudo instead)
    comment out: #Default requiretty

    If requiretty is set, sudo will only run when the user is logged in to a real tty. This will disallow things like 'rsh somehost sudo ls' since rsh does not allocate a tty; because it is not possible to turn off echo when there is no tty present.
    _______________

  4. #4
    Just Joined!
    Join Date
    Jun 2009
    Posts
    3
    Quote Originally Posted by TheBoogyMaster View Post
    try by conecting on root.

    Code:
    su
    if not juste type : sudo nautilus and do it graphicaly...


    look at this 2:
    [publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds1/chown.htm]Help -
    OK I tried both
    when typing:
    "sudo nautilus" I get:
    > sudo nautilus
    sudo: sorry, you must have a tty to run sudo

    when executing code
    "su"
    it just goes:
    > su
    and nothing else changes after executing chown it still displays:
    sudo: sorry, you must have a tty to run sudo

  5. #5
    Just Joined!
    Join Date
    Jun 2009
    Posts
    3
    when I try command:
    "visudo /etc/sudoers"
    I get:
    > visudo /etc/sudoers
    usage: visudo [-c] [-q] [-s] [-V] [-f sudoers]
    From what I understood it should edit sudoers file, but nothing else happens

  6. #6
    Linux Newbie
    Join Date
    Apr 2009
    Posts
    160
    Just type

    Code:
    visudo
    You don't need the path.

    Also try

    Code:
    su -

Posting Permissions

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