LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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



Reply
 
Search this Thread
Old 11-25-2004, 12:53 PM   #1
midtown266
LQ Newbie
 
Registered: Nov 2004
Location: Michigan, US
Distribution: Gentoo
Posts: 9

Rep: Reputation: 0
Question chmod won't change the file permissions


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 ;-)
 
Old 11-25-2004, 01:04 PM   #2
65_289
Member
 
Registered: May 2002
Distribution: Ubuntu 5.04, Kanotix
Posts: 163

Rep: Reputation: 30
2 questions for you:

1. Why do you need execute permissions on mp3's? Is read access not enough? On my computer, I can play mp3's with just read access for the files.

2. Are you root whenever you try to change the permissions?

Last edited by 65_289; 11-25-2004 at 01:08 PM.
 
Old 11-25-2004, 01:14 PM   #3
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Rep: Reputation: 15
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 =)
 
Old 11-26-2004, 04:24 PM   #4
midtown266
LQ Newbie
 
Registered: Nov 2004
Location: Michigan, US
Distribution: Gentoo
Posts: 9

Original Poster
Rep: Reputation: 0
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

peace all
 
Old 11-26-2004, 04:47 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,165

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
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.
 
Old 11-26-2004, 07:26 PM   #6
midtown266
LQ Newbie
 
Registered: Nov 2004
Location: Michigan, US
Distribution: Gentoo
Posts: 9

Original Poster
Rep: Reputation: 0
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

[music]
path = /root/hde5/music/music
browseable = yes
read only = yes
 
Old 11-26-2004, 08:33 PM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
it's your fstab entry; should be smth. like :

/dev/hda1 /win-c vfat rw,users,umask=022 1 0

unmount the part., edit fstab and remount.

egag
 
Old 11-26-2004, 09:02 PM   #8
midtown266
LQ Newbie
 
Registered: Nov 2004
Location: Michigan, US
Distribution: Gentoo
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the reply,

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

Thanks again
 
Old 11-26-2004, 10:25 PM   #9
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
well.... then i guess you'll need : " umask=002 ".
that give's users all permissions.

egag
 
Old 11-26-2004, 11:24 PM   #10
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,165

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
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?
 
Old 11-27-2004, 10:35 AM   #11
midtown266
LQ Newbie
 
Registered: Nov 2004
Location: Michigan, US
Distribution: Gentoo
Posts: 9

Original Poster
Rep: Reputation: 0
This is my whole smb.conf

Code:
# Global parameters
[global]
   workgroup = family
   netbios name = LinXBox
   encrypt passwords = yes
   null passwords = yes

[music]
   path = /root/hde5/music/music
   browseable = yes
   read only = yes
I am trying to make the folder music accessible by user1.
My harddrive partition hde5 is mounted into the folder /root/hde5

thanks again for stickin with me through all this.
 
Old 11-27-2004, 11:51 AM   #12
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
don't mount it under /root, that's root's home only accessable by root.

egag
 
Old 11-28-2004, 08:46 PM   #13
midtown266
LQ Newbie
 
Registered: Nov 2004
Location: Michigan, US
Distribution: Gentoo
Posts: 9

Original Poster
Rep: Reputation: 0
it worked!!! thanks everyone for your help

mounted it under /mnt/hde5 instead of /root/hde5 thanks all again, all help is very much so appreciated :-D

thank you and have a great DAY/WEEK/MONTH/YEAR/LIFE!!! WHOOO!! :-) :-P

midtown
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change my windows partition permissions. chmod won't work. brandonloserkid Slackware 2 12-03-2004 06:39 PM
File Permissions, CHMOD problems, image included. DeathGoth Programming 16 10-05-2004 10:51 PM
How can I change the permissions of /dev/ptyp* (chmod does not work) gderou Mandriva 0 08-24-2004 11:37 AM
chmod shows change to permissions, but ls-l doesn't vdemuth Slackware 6 07-03-2004 05:29 AM
chmod and file permissions help qages Linux - General 5 01-27-2003 07:08 AM


All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration