DebianThis forum is for the discussion of Debian Linux.
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.
I have two machines that I keep mirrored to each other, aspen and spruce. Both have debian 3.1 unstable.
The /home directory is FAT32, because I share that directory with Windows. Both machines dual-boot.
I keep my music in my /home/public/music directory.
I decided to delete dublicate songs. I found the dups, put them in a file with an rm before each file to delete. i.e.
rm song1.mp3
rm song2.mp3
etc.
I named the file "clean" and intended to use it as a script. I ran the file on aspen, the songs were deleted, no problem.
I copied the file over to spruce, logged in as root, I tried the same thing, and got this error:
- bash: ./clean Permission Denied
The permissions on the script are rwxrwxrwx. The permissions on the directory is rwxrwxrwx. The permissions on all of the files are rwxrwxrwx. And I am logged in as root. How can I be getting a permissions denied error?
It gets stranger. The "clean" script did not have an header. I tried adding the standard header:
#!/bin/bash
And got this error:
- bash: ./clean: /bin/bash: bad interpreter Permission Denied
Do any of the mount points have the user flag set?
To quote from the mount man page:
Quote:
user: Allow an ordinary user to mount the file system. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line user,exec,dev,suid).
This means that no files can be executed in that mount point.
Your home partition should be a Linux file system - the fat32 file system does not support the same file attributes.
You may be able to get around this particular problem by mounting the partition with the exec,umask=0000 options but I'd recommend using a Linux file system for /home and mounting the fat32 partition somewhere else. You can always put a link in your home directory so that it's easy to get to your music.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.