Link to home
Start Free TrialLog in
Avatar of leeds2k
leeds2k

asked on

Dont have write access to save a ini file

i have mandrake linux 10.1, and ive just installed americas army and want to run a dedicated server..

here is my problem; when i try to make a INI file called server.ini and tries to save it, i get this error message: the document could not be saved as it was not possible to write to file:/home/servers/aa/armyops/system/server.ini

Check out that you have write access to this file or that you have enough disk space

Well, i have enough disk space...


I am using kwrite and/or Kate editors, maybe another editor will work? or is it some setting i must do here?

I am a newbie with linux, so please help me!! 500 points to the first!
Avatar of leeds2k
leeds2k

ASKER

may it be becouse when i installed it, i was log on as root? and if so, how can i fix it?
Avatar of PsiCop
Check the ownership of the file - if it is not owned by your user ID (and if you were root when you installed it, it may not be), then chown it to your user ID. You'll have to use su or sudo or whatever to do this.
Avatar of leeds2k

ASKER

well, im trying to use sudo command, but i dont understand which command i need to use to set ownership to my user... sudo -u username was 1, but it seemed like it didnt work
Avatar of leeds2k

ASKER

seemed like the correct answer was "chmod -R a=awx (directory)"


ASKER CERTIFIED SOLUTION
Avatar of apsivam
apsivam

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of leeds2k

ASKER

and what should i use if i dont have a group??
you must have a group in linux no problem if you ignore :group part of the command

--Cheers,
Sivam
www.emmeskay.com
Avatar of leeds2k

ASKER

and this works for all underdirectorys too?
Avatar of leeds2k

ASKER

btw, i have already used the command "chmod", do i need to reset this back also? or is it enough to change owner to me?
yup that what it -R option is for try it yourself it wont hurt you unless its production server

--
Cheers,
Sivam
www.emmeskay.com