Try changing file permissions on the file you want to write to. Then put it in YOUR home directory
What this does: basically make a local copy you can play with safely, and without advanced permissions
Not a the best way is to su to root:
If you forget you are root you can destroy the whole system with one command. Be careful.
Now you do not need to sudo or anything else except edit the file and do whatever config changes you want.
Last edited by jim mcnamara; 08-05-2018 at 01:31 PM..
You may be confusing 'saving' a file with 'closing' a file.
If you save the file in your editor, the editor doesn't know that you've finished and could have the file still locked. If you close the file then you let go of it.
I'm not sure it'd be wise to upset the forum moderators' crew in your fifth post if you want to continue "getting good help" in these fora.
Quote:
Originally Posted by annacreek
. . .
What's with "us" and "we" ?
"We" and "us" are the forum members in general, and the suppliers of advice in particular, last but not least the advisors and moderators running these fora.
Quote:
Can you add anything constructive to the discussion without getting the info you asked for ?
Again, calm down. I have a guess or two what could be wrong in your setup. Had the info requested by Corona688 been available from the beginning, had you given the entire picture, you might already have gotten a solution to your problem.
Quote:
PS I got reprimand for not posting code in tags.
SO I try to copy tagged post but could not figure it out.
Did the normal "cut and paste" using mouse.
SO is there a trick to "copy tagged code "?
Now, this is mentioned in several places, e.g. JUST ABOVE the editor, or in the forum rules and FAQs. Select the code or data section in your post, and click the code button on top of the editor. Repeat for every section if needed.
can you help
i am merging 2 files together and saving to a third file with awk
and its working with this code
awk 'OFS="";NR==FNR{a=$0;next} {print a,"\n","\b",$0}' file1 file2 > file3the problem is in file3 when its saved
i get a small square at the start of every 2nd line (see picture)
... (6 Replies)
Hi ,
Script File Is Not Getting Saved This Are The Steps I Am Following For Saving And Executing A Script
1). vi ( To Open Vi Editor )
2). vi filename ( vi firstprog.ksh)
#!bin\kash
date
3) !wq :( Saving And Quit) When I Am Saving The Scrpit I Am Getting The Below... (1 Reply)
I am looking for a script where I need to open a file and modify the data like changing the parameters.Can anyone help me?
open a file software.rsp . It already contains following data.
parameter = false
threads=100
user= demf
The above should be changed to
paramter=true
thread= 133... (3 Replies)
I have just tried out Bluefish as an alternative to my regular text editor. If I save the modified preferences and reboot, the preferences have to be reentered again. Does anyone know which file the preferences are saved in?
The command
find / -mmin -5 | grep bluefish
yields zero hits.
Thanks... (2 Replies)
Guys i'm trying to save STDERR to a variable for a portion of my ksh script on solaris.
I know i can create redirects to files as such:
exec 4>/tmp/lava
print "This will be saved to /tmp/lava and not screen"; >&4
print "This will be seen on screen" >&2
I want to save the STDOUT of a... (4 Replies)
Our system produce logs when a script is run which may not be daily, the logs have a format: name_YYMMDD.log - both name and .log are consistent, date changes as per the day the script is run.
Is there a way of finding the last saved log? (20 Replies)
Hi all,
I have edited my sudoers file. I am using visudo command
I have added the following lines and saved the file.
I am saving the lines as :wq
But I am very amazed to see that these lines are not written in the sudoers file. I have retried the above process many times, when I... (0 Replies)
Hi,
Something funny is happening over here: when a regular user edits his cron-file (crontab -e) saves and exits vi the correct new cron-file gets installed and saved to disk. But if root does the same, vi saves it but if I then check the cron-file it has the previous contents! I did strace (==... (1 Reply)