: :

Add Comment | Related Links | TrackBack
Related Content

Ubuntu 13.04: Executing Shell Scripts From Samba Share

Ubuntu 13.04 has really made it difficult to execute shell scripts from a network share. After mounting a Windows network share in Nautilus (Ubuntu's default file manager), you can't do anything with the shell scripts other than loading them up in a text editor. If you create a desktop file (file with ".desktop" extension) to run the shell script, you'd simply get this error message:

Sorry, but you cannot execute commands from a remote site.
This is disabled due to security considerations.

Even the "Ubuntu: Enable Execution on FAT and NTFS Volumes" trick that works on Ubuntu 12.10 fails on Ubuntu 13.04. And, of course, mounting the network share in Nautilus doesn't allow you to access the remote share in the command-line.

The only other work-around that succeeded in allowing me to execute shell scripts on a remote share is to mount the remote share locally. You can do that if you have the CIFS utility installed. To install it, issue the following command in Terminal:

  sudo apt-get -y install cifs-utils

After installing this set of utility, you can use the "mount" command to mount the network share. But first, you need a mount point (an empty directory). I prefer putting the mount point in "/media". So you can do that with the following command (replace [folder] with the directory name of your choosing):

  sudo mkdir /media/[folder]

Once you have the directory created, you can use the following command to mount the CIFS network share (replace [host] and [share] with what's appropriate):

  sudo mount -t cifs //[host]/[share] /media/[folder] -o rw,noperm

Note that even with the "rw" (read/write) option, I found that some files in the mount still ended up as read-only. Using the "noperm" option gets around it.

Once you do all that, the remote network share will be mounted on your local Linux file system. Then you can run scripts either via the command-line or using a desktop file. Only short-coming is that you still can't double-click or right-click to launch a script. Nautilus seems to have eliminated that capability.

Chieh Cheng
Fri, 31 May 2013 03:49:08 +0400

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 4 + 4?
Click button only once, please!


TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Articles | Wiki
Forums | Latest | RSS
Library | Links | News
Search | Store | Help

160 Users Online

Hacking Digital Cameras
Fun for Photographers

Amazon Associate

Copyright © 2004 - 2024. All Rights Reserved.