LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 03-19-2003, 07:12 AM   #1
harperonline
Member
 
Registered: Mar 2003
Distribution: Centos5*,OpenBSD,Debian*
Posts: 32

Rep: Reputation: 15
Unhappy r/w permissions on a mounted ext3 hard drive


I have successfully mounted an ext3 formatted hard drive but I have a problem with read write permissions.

1)The drive boots as r/w under /etc/fstab perfectly ok.

2)I am using samba as a protocol to commuicate with the windows clients.

PROBLEM! This drive is meant to be a shared public drive but If i create a document for example a text document and save it on this drive other users can only view this as read only. I need to be able to set this entire drive read, write, execute for all users and all sub folders too so that whatever i create can be altered by other users. I know it's bad practice but I am under orders on this!

Any ideas???
 
Old 03-19-2003, 06:22 PM   #2
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
In you smb.conf file did you put writable = yes under Public section. Are you setting up Public for guests or are you setting it up for Windows users only.

If you are setting up for guest users, in the Public section in smb.conf add:

guest ok = yes
guest only = yes

You may need 'large readwrite' in Global section if your clients are using Windows 2000.


My smb.conf look like:
Code:
#======================= Global Settings =====================================
[global]
    workgroup = HOME
    netbios name = ELIZA
    server string = Mandrake LINUX 9 using SMB
    large readwrite = yes
    printcap name = lpstat
    load printers = yes
    printing = cups
    log file = /var/log/samba/log.%m
    max log size = 50
;    security = user
    security = share
    guest only = yes
    guest ok = yes
    encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    dns proxy = no 
    client code page = 850
    character set = ISO8859-1


#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   browseable = no
   writable = yes


[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = yes
   writable = no
   printable = yes
   create mode = 0700
   print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.


[print$]
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   write list = @adm root


[pdf-generator]
   path = /var/tmp
   guest ok = No
   printable = Yes
   comment = PDF Generator (only valid users)
   #print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP &
   print command = /usr/share/samba/scripts/print-pdf %s ~%u \\\\\\\\%L\\\\%u %m %I &


[Video]
   comment = Movie Clips
   path = /mnt/D/Video
   public = yes
   guest ok = yes
   only guest = yes
   writable = no
   printable = no


[Public]
   comment = Everybody can write
   path = /mnt/D/Public
   public = yes
   guest ok = yes
   only guest = yes
   writable = yes
   printable = no


[My Documents]
   comment = My Documents
   path = "/mnt/D/My Documents"
   public = yes
   guest ok = yes
   only guest = yes
   writable = no
   printable = no


[Bookmarks]
   comment = Bookmarks to Internet Sites
   path = /mnt/D/internet/favorites
   public = yes
   guest ok = yes
   only guest = yes
   writable = yes
   printable = no


[Downloads]
   comment = Downloads from Internet Sites
   path = /mnt/D/Downloads
   public = yes
   guest ok = yes
   only guest = yes
   writable = no
   printable = no


[Applications]
   comment = Full Version Applications
   path = /mnt/D/appz
   public = yes
   guest ok = yes
   only guest = yes
   writable = no
   printable = no


[Linux]
   comment = Linux Distributions & Programs
   path = /mnt/D/Linux
   public = yes
   guest ok = yes
   only guest = yes
   writable = no
   printable = no


[Hauppauge]
   comment = Copy of Hauppauge WinTV Installation CD
   path = /mnt/D/hauppauge
   public = yes
   guest ok = yes
   only guest = yes
   writable = no
   printable = no
Mine is setup so guest (Windows 98 & Windows XP) can access my LINUX box. Every directory the guest sees is in read-only state but Public is read and write. I need to clean up some lines because there is some redundancy lines. The Printer sections are put in automatically, so I didn't mess with it.

Read samba's documentation on what you can put in the smb.conf file.
 
  


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
Issues with permissions of a mounted drive mreinecker Linux - Newbie 8 03-22-2005 08:52 PM
Problem accessinng mounted hard drive darknails Linux - Hardware 3 01-04-2005 11:18 PM
mounted hard drive can only be accessed by root Flutterby Linux - Hardware 3 07-17-2004 04:52 AM
Mounted drive permissions? Vfat kiteless Linux - General 3 08-29-2003 01:32 PM
Proplems with mounted drive permissions Davschm Linux - Newbie 2 09-15-2002 06:35 PM


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