LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-31-2003, 04:59 AM   #1
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Rep: Reputation: 22
mounting a windows share w/ rw permissions


I'm doing the standard 'mount -t smbfs //windowsmachine/share /mountpoint
and have been doing so for a while.

One thing I've never figured out though is how to make the share with write persmissions for someone other than root. Root is the only one that can mount, and once the share is mounted, it's set to 0755. It returns an error when trying to change the whole mount (or anything within the directory tree) to 0755.

Any suggestions?
 
Old 01-01-2004, 05:52 PM   #2
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
Have your read the manpage for Samba configuration?

man smb.conf

The configuration file, smb.conf, may be in /etc or /etc/samba

If you change it, you will need to restart Samba by doing something like:
/etc/init.d/smb restart
 
Old 01-04-2004, 06:18 AM   #3
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
Yes, I've read it.

I've got
admin users = myuseraccount

set. I even restarted the machine (not just samba) so surely it picked up the changes. Yet, I try to write/create a file on the Samba share and still get access denied errors.

Any other suggestions?
 
Old 01-04-2004, 07:58 AM   #4
sal_paradise42
Member
 
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150

Rep: Reputation: 16
try ' smbmount //compname/share /mount/point -o fmask=777,dmask=777'
 
Old 01-04-2004, 08:54 AM   #5
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
That's it!

Thanks man! Much appreciated.
 
Old 01-04-2004, 06:31 PM   #6
w0000422
Member
 
Registered: Dec 2003
Distribution: redhat linux 9.0
Posts: 60

Rep: Reputation: 15
sorry...what's fmask and dmask mean??
 
Old 01-04-2004, 07:00 PM   #7
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Quote:
Originally posted by w0000422
sorry...what's fmask and dmask mean??
LOL, read: man samba
 
Old 01-06-2004, 08:54 AM   #8
hypexr
Member
 
Registered: Oct 2003
Location: USA Fresno Callifornia
Distribution: Gentoo (workstation), ArchLinux (file/mail server), Freebsd (web server), Ubuntu (laptop)
Posts: 115

Rep: Reputation: 16
Quote:
Originally posted by 320mb
LOL, read: man samba
Not so helpfull.

Its actually in man smbmount on my computer:
Code:
       fmask=<arg>
              sets the file mask. This determines the permissions that remote files have
              in the local filesystem.  The default is based on the current umask.
Code:
       dmask=<arg>
              sets  the  directory  mask.  This  determines  the permissions that remote
              directories have in the local filesystem.  The default  is  based  on  the
              current umask.
 
Old 01-06-2004, 07:04 PM   #9
w0000422
Member
 
Registered: Dec 2003
Distribution: redhat linux 9.0
Posts: 60

Rep: Reputation: 15
ya..."man smb" didn't mention abt fmask and dmask!
 
  


Reply



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
Mounting hidden windows share ashjam10 Linux - Networking 1 11-12-2005 10:11 PM
Trouble mounting a Windows share lowpro2k3 Slackware 2 10-17-2005 04:38 AM
mounting a windows (samba) share? alsjordan Linux - Newbie 3 08-06-2005 08:22 AM
mounting linux share point on windows jolu2000 Linux - Software 1 04-18-2003 09:36 AM
mounting a windows network share? graystarr Linux - Networking 2 11-09-2002 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:13 AM.

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