Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-05-2004, 07:12 PM   #1
LQ Newbie
Registered: Jan 2002
Location: Illinois
Distribution: Slackware 9 (VectorLinux)
Posts: 16

Rep: Reputation: 0
Read-Write Access for Network Shares

Ok. I'm running Slackware 9 on a laptop. I haven't been able to find a way to get my pcmcia services to start before the file system is mounted. As a result, I'm not mounting my network shares in ftab; I'm mounting them in rc.local.

Here is my syntax to mount my network share in rc.local:

mount -t smbfs //hkd-server/data /mnt/data -o credentials=/root/.credentials/user-passwd,rw

If I log in as root, I have complete access to my mounted drives and can create/delete files. However, when I log in as a user, I get a lovely: "Can't write to ... Permission denied" error when I try to create/delete files on the network drive.

I have read hundreds of posts, tried most of the options in the man file but I can not seem to get a user read/write access. I have to be missing something here. Can somebody help me out before I just start using the root account? Thanks...
Old 08-06-2004, 06:11 PM   #2
LQ Newbie
Registered: Jan 2002
Location: Illinois
Distribution: Slackware 9 (VectorLinux)
Posts: 16

Original Poster
Rep: Reputation: 0

I changed my rc.local to use smbmount instead of mount. I was able to get the uid and gid to work with smbmount. I used the following syntax:

smbmount //hkd-server/data /mnt/data -o credentials=/root/.credentials/user-passwd,uid=hkdude,gid=users,dmask=774

Old 08-06-2004, 06:17 PM   #3
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926
Congratulations, and thanks for posting the solution, too.
A fine example that you're setting! :)



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
set permanent read-write permission on shares Randall Slack Linux - Networking 1 10-30-2005 08:54 PM
Driver to read/write to MS Access DB w/Perl bpotts Linux - General 1 09-15-2005 09:24 PM
read write access phoenix_wolf Linux - Newbie 2 12-05-2004 09:35 AM
NFS non root read write access matthewkeen Linux - Networking 8 09-09-2004 10:52 PM
Read/Write access to a partition? Boggit Linux - Newbie 5 04-04-2004 03:05 PM > Forums > Linux Forums > Linux - Newbie

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

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