Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
This last weekend I was trying to edit some tag info on ogg files that were given to me by my brother. I soon realized that oggs and mp3s ripped in windows are read only, and they are executable. So if I want to edit the tags, I have to change the permissions to user writable. This poses two questions in my mind:
1. Should audio files be executable or this a securtiy risk? I know that as long as these executables don't have root access, it's okay, but it still seems odd to me to have an audio file need to be executable. Any ideas?
2. Do mp3 players require the mp3s and oggs to be executable? I have a neuros and iaudio u2. The neuros plays anything whether it's executable or not, but the u2 won't play an ogg or mp3 unless it's executable.
If anyone could shed some light on this, that would be great.
1. No they should not be executable. It would only be a security risk if the .mp3 file was actually a binary program or script and not just binary data as an mp3, ogg file should be.
2. No, just readable by the user that is trying to access.
Hmmm. Interesting. Thanks for the reply crabboy. Is there a reason why windows apps would enable executable permissions? I've aslo found that sometimes k3b (my default ripper to ogg) creates executable permissions. I guess in the big scheme of things, it's no big deal, but it does seem to be a mystery to me!
This could have something to do with the umask entry of the partition in fstab if all your files are executable. I'm using umask=000 for my windows partitions so every file is actually rwx.
Also if you have a umask=0222 then you'll have r+x permission but not write.
I'm not using umask or windows, but I have a few friends who use only windows (I know I know I'm working on it). Anyways, I don't think you can change the permissions on a windows file can you? It just seems silly to me. Anyways, thanks for you replies.
The reason the permissions looks funny probably has to do with how you "transfered" the files to Linux. Windows and windows file systems don't have the same sort of permissions bits as Linux and Unix do. Consequently, Windows SMB networking doesn't communicate the sort of file permissions bits that Linux does--so whatever SMB client you're using has to fill in the blanks with defaults.
One way to fill in those blanks is to default to making every file executable, since there's no way to really tell whether or not they're supposed to be executable.
Windows apps don't set or unset the "executable" permissions bit, because no such "executable bit" even exists in Windows. Whatever Windows program you used to encode the file has no control or influence over whether or not the "executable" permissions bit gets set later on when Linux sees the file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.