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 ...
- 06-24-2009 #1Just Joined!
- Join Date
- Jun 2009
- Posts
- 3
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
- 06-24-2009 #2
try by conecting on root.
if not juste type : sudo nautilus and do it graphicaly...Code:su
look at this 2:
Help -
- 06-24-2009 #3Linux 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.
_______________
- 06-24-2009 #4Just Joined!
- Join Date
- Jun 2009
- Posts
- 3
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
- 06-24-2009 #5Just 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
- 06-25-2009 #6Linux Newbie
- Join Date
- Apr 2009
- Posts
- 160
Just type
You don't need the path.Code:visudo
Also try
Code:su -


Reply With Quote
