LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 08-08-2003, 06:55 PM   #1
blueleft
LQ Newbie
 
Registered: Aug 2003
Distribution: SuSE
Posts: 15

Rep: Reputation: 0
chmod command not affecting files


Hiya, I haven't got that much of an idea what I'm doing here, so apologies in advance if I'm doing something dumber than usual.

I build a SuSE linux box and am trying to share it on a windows network. I got samba running, and can see my shares on the other machines, but when I tried to access them it said invalid user/password. Then I realised I must have to have the permissions set more loose on the SuSE pc, so I logged on as root, and went to the directories I am trying to share (whole drive mounts) and ran chmod 777 directory name. This didn't error, but didn't change the permissions.

I tried verbose mode:
ssstorage:/ # chmod -v 777 storage_fixd
mode of `storage_fixd' changed to 0777 (rwxrwxrwx)
ssstorage:/ # ls -l | grep storage_fixd
drwxr-xr-x 2 root root 4096 Aug 9 09:18 storage_fixd

Chmod works normally elsewhere, but not on this drive mount / directory. Does anyone know what I have missed? Thanks for any assistance,

Dave =
 
Old 08-08-2003, 07:14 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,391

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
I have had that problem in times past. What I think I did to solve it is to unmount the drive, run chmod against the directory, and remount the drive.
 
Old 08-08-2003, 07:16 PM   #3
shaggz
Member
 
Registered: Dec 2002
Location: FuNkYToWN
Distribution: SuSe, Gentoo, Fedora
Posts: 64

Rep: Reputation: 15
The permissions must be set when you mount any given partition w/samba I believe. By default it sets it as read only. I have not really devled very deep in samba only to share files as I don't want others to write to any non local partition. (I use scp for that)

Sorry I can't be of more help. I know that the man page for smbmount has info on setting mountpoint perms however. Try that.
 
Old 08-08-2003, 09:51 PM   #4
blueleft
LQ Newbie
 
Registered: Aug 2003
Distribution: SuSE
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks - the drive mount thing is interesting, and is onto the right track here. I can change the permissions on the directory when no drive mounted there - all AOK - set them to be rwxrwxrwx, but as soon as the drive is mounted then it sets the permissions automatically to be rwxr-wr-w and won't let them be altered.

Guessing that it must be something to do with the drive mounting process?
 
Old 08-09-2003, 11:26 AM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,391

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
Are you mounting the drive in /etc/fstab? If so check how /etc/fstab is set up.

Last edited by jailbait; 08-09-2003 at 11:30 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Mac support Linux from a disk without affecting files? Utsukushii Akumu Linux - Newbie 12 05-24-2008 11:52 PM
chmod and chown affecting whole directories linuxmandrake Linux - Newbie 1 10-08-2005 07:04 PM
CHMOD Command gerowen Linux - Software 1 09-26-2005 02:29 AM
chmod command to change all files in directory paul_mat Linux - Newbie 2 01-10-2005 09:05 PM
chmod command linuxtesting2 Linux - Newbie 2 09-03-2004 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:54 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
Open Source Consulting | Domain Registration