Active Topics

 


Reply
Thread Tools
Posts: 20 | Thanked: 15 times | Joined on Dec 2009
#1
Hi, I'm trying to create a symbolic link to a shell script I'm writing in a directory I created (/home/user/scripts) from a "visible" directory like MyDocs/.documents/ so that I can edit the file in a GUI editor like LeafPad. However, when I try (from MyDocs/.documents)

"ln -s /home/user/scripts/example.sh example.txt"

I get the following: "ln: example.txt: Operation not permitted".

I tried with root access and same deal. An alternative question might be, is there a way to use text editing applications (e.g. LeafPad) to edit shell scripts that aren't within MyDocs?

I've been using vi to create and edit the files up till now, but in some cases I would prefer to use a graphical text editor. Any help is much appreciated.
 
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#2
Originally Posted by airjordan17 View Post
Hi, I'm trying to create a symbolic link to a shell script I'm writing in a directory I created (/home/user/scripts) from a "visible" directory like MyDocs/.documents/ so that I can edit the file in a GUI editor like LeafPad. However, when I try (from MyDocs/.documents)

"ln -s /home/user/scripts/example.sh example.txt"

I get the following: "ln: example.txt: Operation not permitted".

I tried with root access and same deal. An alternative question might be, is there a way to use text editing applications (e.g. LeafPad) to edit shell scripts that aren't within MyDocs?

I've been using vi to create and edit the files up till now, but in some cases I would prefer to use a graphical text editor. Any help is much appreciated.
The file system for Mydocs does not support symbolic links. This is yet another example of the collateral damage from using FAT file systems as the de facto standard for data exchange between systems.

You could make a MyDocs/.documents/scripts directory with the script and put the symbolic link in /home/user/scripts, but Mydocs is mounted noexec by default, and you should not change that without understanding the risks involved.
 
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#3
MyDocs does not support symbolic links, because it's fat32 filesystem.

You can start leafpad from command line too, if that helps.
 
Posts: 20 | Thanked: 15 times | Joined on Dec 2009
#4
Thanks, guys. Much appreciated.
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:21.