Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello Good Morning,
Actually my problem is that when i going to create a directory using this command : sudo gedit/var/www/test.php then it shows this message. So can you please help me why this would be happened....please...
Warning Message:
(gedit:2326): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
(gedit:2326): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
Gedit tries to update the list of recently opened files and the file or any leading directories up to it do not exist. Instead of "fixing" this error I suggest you change your development habit and set up your personal repository using RCS, CVS, SVN, Mercurial, GIT or whatever else versioning system you fancy. Store changes there and only checkout and 'sudo cp' files to /var/www when you're certain it works. This way you don't have to run applications as root unnecessarily and can revert if something doesn't work.
Yes,its not necessary that we do every thing using root but when we going to create a directory without root using gedit then its create a problem related to saving of file. Then what should i do???
Yes,its not necessary that we do every thing using root but when we going to create a directory without root using gedit then its create a problem related to saving of file. Then what should i do???
Try using Sudo? To create directories with ownership set see for example 'install' as in 'sudo install -m 0755 -o root -g apache -d /var/www/directoryname'. 'man install' for explanation of options.
Quote:
Originally Posted by mark_alfred
Beyond this workaround, I haven't been able to find another answer to this.
The error isn't about Gedit IMHO but people using the wrong tool to get the job done.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.