LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-25-2002, 03:05 PM   #1
keirobyn
Member
 
Registered: Dec 2001
Location: China
Distribution: Mandrake 7.2 and 8.1
Posts: 51

Rep: Reputation: 15
cannot write to windows share as user


As a user, I can read but not write to a Windows share I have mounted through Samba. As root, however, I can. The permissions for the mounted directory show that the mounted directory is owned by root and has no write permissions for group or other. As root, I try changing the permissions to 777, but I get no error and no change in the permissions.

This is my ftab line that is mounting the share:
//robyn/data /home/keir/data smbfs username=keir,password=keir 0 0

Thanks, Keir
 
Old 11-25-2002, 04:40 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
There are two permissions...
Linux file permissions for /home/keir/data &
window$ permissions for user keir on //robyn/data

does user keir have write permissions in window$ ?
 
Old 11-26-2002, 12:12 AM   #3
keirobyn
Member
 
Registered: Dec 2001
Location: China
Distribution: Mandrake 7.2 and 8.1
Posts: 51

Original Poster
Rep: Reputation: 15
The share permissions are set to 'everyone' full control/read/write'. (It's a home nework) and there are no NTFS permissions (it's FAT 32).
 
Old 01-23-2003, 09:20 AM   #4
pier.3dnow
LQ Newbie
 
Registered: Jan 2003
Posts: 2

Rep: Reputation: 0
no need to use samba if you are trying to use a local partition, if u are trying to access a remote disk maybe the solution could be similar

anyway for local partition:
u can access the partition with read/write mode just adding a line in /etc/fstab
/dev/hdXX /wherever_u_want vfat gid=500,umask=0007 0 0

or as root:
mount -t vfat /dev/hdXX /wherever_u_want -o gid=500 -o umask=0007

this line add the permission to access/read/write/execute anything in the partition with windows to group=500 (see /etc/group)
 
  


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
Can't write to Samba share from Windows Needlotsahelp Linux - Newbie 3 07-30-2005 08:32 PM
write access to share on windows machine Delphinusnz Mandriva 0 11-16-2004 02:24 AM
Cannot write to SMB share as user, can as root GT_Onizuka Linux - Networking 3 10-03-2004 06:52 PM
can't write to VFAT samba share from WIndows dvanaken Linux - Software 3 05-13-2003 05:14 AM
Windows Unable to write to a network share??? Please help! shassouneh Linux - Networking 4 03-10-2002 05:02 PM

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

All times are GMT -5. The time now is 10:31 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