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/army ops/system /server.in i
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!
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/army
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!
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.
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
ASKER
seemed like the correct answer was "chmod -R a=awx (directory)"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
--Cheers,
Sivam
www.emmeskay.com
ASKER
and this works for all underdirectorys too?
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
--
Cheers,
Sivam
www.emmeskay.com
ASKER