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 all, Ive had Slackware for a little bit now, and heres my problem, ive got a W95 partition w/ all of my music on it, and I cannot change the file permissions w/ chmod nor can I change the ownership w/ chown.
bash-2.05b# ls -l
total 64
-rwxr--r-- 1 root root 77 2004-08-28 19:09 Desktop.ini
drwxr--r-- 354 root root 32768 2003-10-20 07:07 music
bash-2.05b# chmod 755 ./music
bash-2.05b# chown weitzel ./music
chown: changing ownership of `./music': Operation not permitted
bash-2.05b# ls -l
total 64
-rwxr--r-- 1 root root 77 2004-08-28 19:09 Desktop.ini
drwxr--r-- 354 root root 32768 2003-10-20 07:07 music
Im trying to set up a share of my music over our home network, but nobody can execute the mp3's, which means that noone can listen to the music.
I would like to change the permissions of the folder music to 755, but it wont do it in the terminal, and the boxes just uncheck right away if you check them in the gui.
The rest of the fam has winblows :-(
Thanks for your help in advance :-)
P.S. They won't change from winblows either, so thats not a viable solution :-P ;-)
well, you can't change the permissions on fat because the file system doesn't support it. So if you have a fat-partition in /mnt called fat you can change the permissions ON the directory but not the directories and files IN it.
So what permissions you set on /mnt/fat will be on the whole partition, so you can't have special permissions for /mnt/fat/music
chmod 755 /mnt/fat would probably work, and if it doesn't: umount the partition, set chmod 755 and mount it on again =)
thanks all,
read someplace that you would need to execute the mp3s, but I may not have to, thanks for your replies,
I did the chmod on the folder after i unmounted it, then i mounted it, and it chnaged it back to 744, when it was unmounted again, it automatically changed to 755 again :-P ill just try to find another way around it :-) i think its probably the way i have samba set up :-) thanks all again, ill post when i get it worked out if i remember :-P
Try setting umask=000 in the options in your fstab file. Be carefull though, as this will give every user on your machine all priviliges on that partition.
thanks, havent tried that yet, but do you think that that would solve this problem?
when i try to access my music folder through samba, I enter my username and password in the popup, and it dissappears, so I know that the information is correct, because when the information is incorrect, it just pops up another box with clear fields.
When this happens, this message pops up
The folder contents could not be displayed.
"music" couldn't be found. Perhaps it has recently been deleted.
im trying to connect with just a plain user name, it works when i use root, but not the plain user, would this be because of the permissions, which are 744?, or do i have to configure my smb.conf differently than this?
# Global parameters
[global]
workgroup = family
netbios name = LinXBox
encrypt passwords = yes
null passwords = yes
I changed the fstab, and the permissions are now changed, so that did work, but it still comes up with the same error message as before, but only with the user, not root, just as earlier, so I think that it is not a problem with the permissions :-( its something else, probably something to do with the samba configuration that I have, I'm seriously lost so if ya'll could continue with your excellent help
Actually, umasks are permissions DENIED, so a umask of 002 means deny write permissions to users not in the owner or group of the file. A umask of 000, as I stated, gives all users all permissions.
But as the OP said, it's unlikely to be a permissions problem at thgis point. Midtown, can you post the apropriate section(s) of your smb.conf file so we can see what your Samba config looks like?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.