Samba Question
Sharpe, Richard
rsharpe at amherst1.com
Fri Jun 13 10:20:15 EDT 2003
Thanks Ken,
That worked, plus another way worked also:
mount -t smbfs -o rw,username=rsharpe,password=xxxxxxx -o dmask=777
//bedford/apps /apps
Much appreciated
Rich
Richard A Sharpe
Database Analyst and Administration (DBA) Sqlserver/DB2
Amherst Technologies
40 Continental Blvd
Merrimack, NH 03054
PHONE .......(603) 579-6180 / (800) 431-8031
Cell phone ..(603) 320-7785
FAX ...........(603) 578-1072
EMAIL .......rsharpe at amherst1.com / Webpage ...www.amherst1.com
"Tenemos que tener fe" ("We must have faith")
-----Original Message-----
From: ken at flyingtoasters.net [mailto:ken at flyingtoasters.net]
Sent: Friday, June 13, 2003 10:09 AM
To: Sharpe, Richard
Cc: rsharpe at earthlink.net; gnhlug at sophic.org; GNHLUG mailing list
Subject: RE: Samba Question
Okay; it took me a few moments to figure it out. When you do the mount,
files are (apparently -- I'm going by empirical evidence, here) created as
"root"... and if root doesn't have permission to write the drive, you're
SOL. The way around this is the uid & gid options, thusly:
mount -t smbfs -o
rw,uid=rsharpe,gid=rshapre,username=rsharpe,password=xxxxxxx
//bedford/apps /apps
(Yeah, that should all be on one line.) Then, your writes will occur as
-you-, and not as root. I have no idea if a local Unix account is
required, but I'm guessing not.
-Ken
> Here is what I do
>
> concord:/ # ls -l
> total 112
> drwxr-xr-x 22 root root 512 2003-06-12 21:53 .
> drwxr-xr-x 22 root root 512 2003-06-12 21:53 ..
> drwxrwxrwx 2 root root 48 2003-05-03 20:29 apps
> drwxr-xr-x 2 root root 2112 2003-05-02 18:42 bin
> drwxr-xr-x 3 root root 416 2003-06-09 18:20 boot
> drwxr-xr-x 29 root root 94848 2003-06-12 21:23 dev
> drwxr-xr-x 60 root root 6400 2003-06-12 22:11 etc
> drwxr-xr-x 3 root root 72 2003-05-02 21:04 home
> drwxr-xr-x 7 root root 2768 2003-05-02 20:58 lib
> drwxr-xr-x 6 root root 152 2003-03-18 12:49 media
> drwxr-xr-x 2 root root 48 2003-03-18 12:49 mnt
> drwxr-xr-x 8 root root 208 2003-05-02 19:16 opt
> dr-xr-xr-x 112 root root 0 2003-06-12 17:23 proc
> drwx------ 17 root root 728 2003-06-12 22:03 root
> drwxr-xr-x 3 root root 7096 2003-05-02 20:58 sbin
> drwxr-xr-x 4 root root 96 2003-05-02 18:25 srv
> drwxrwxrwt 28 root root 1056 2003-06-12 22:08 tmp
> drwxr-xr-x 13 root root 368 2003-06-07 13:36 usr
> drwxr-xr-x 14 root root 360 2003-05-02 18:28 var
> drwxr-xr-x 3 root root 96 2003-05-02 18:23 windows
> concord:/ #
>
> concord:/ # mount -t smbfs -o rw,username=rsharpe,password=xxxxxxx
> //bedford/apps /apps
> INFO: Debug class all level = 1 (pid 3163 from pid 3163)
> concord:/ #
>
> concord:/ # ls -l
> total 116
> drwxr-xr-x 22 root root 512 2003-06-12 21:53 .
> drwxr-xr-x 22 root root 512 2003-06-12 21:53 ..
> drwxr-xr-x 1 root root 4096 2003-06-07 15:29 apps
> drwxr-xr-x 2 root root 2112 2003-05-02 18:42 bin
> drwxr-xr-x 3 root root 416 2003-06-09 18:20 boot
> drwxr-xr-x 29 root root 94848 2003-06-12 21:23 dev
> drwxr-xr-x 60 root root 6400 2003-06-12 22:06 etc
> drwxr-xr-x 3 root root 72 2003-05-02 21:04 home
> drwxr-xr-x 7 root root 2768 2003-05-02 20:58 lib
> drwxr-xr-x 6 root root 152 2003-03-18 12:49 media
> drwxr-xr-x 2 root root 48 2003-03-18 12:49 mnt
> drwxr-xr-x 8 root root 208 2003-05-02 19:16 opt
> dr-xr-xr-x 114 root root 0 2003-06-12 17:23 proc
> drwx------ 17 root root 728 2003-06-12 22:03 root
> drwxr-xr-x 3 root root 7096 2003-05-02 20:58 sbin
> drwxr-xr-x 4 root root 96 2003-05-02 18:25 srv
> drwxrwxrwt 29 root root 1096 2003-06-12 22:04 tmp
> drwxr-xr-x 13 root root 368 2003-06-07 13:36 usr
> drwxr-xr-x 14 root root 360 2003-05-02 18:28 var
> drwxr-xr-x 3 root root 96 2003-05-02 18:23 windows
>
>
> rsharpe at concord:~> cd /apps
> rsharpe at concord:/apps> ls
> Backup Ghost_images QUICKENW_BACKUP Tax00
> BackupExec8.6 INFOSHARE QuickBrochures Tax01A
> Backup_Linux Mail_archive RECYCLER Temp
> Backup_Marianne My SQL Remote Desktop Client WUTemp
> Backup_Warner_files My Videos SFU
> msdownld.tmp
> CS430Beta PIXWORKS Sierra ttax01B
> DATAFILE Program Files System Volume Information vncinst
> DOWNLOAD QUICKENW TTAX02
> rsharpe at concord:/apps> ls > foo.bar
> bash: foo.bar: Permission denied
> rsharpe at concord:/apps>
>
> Richard A Sharpe
> Database Analyst and Administration (DBA) Sqlserver/DB2
> Amherst Technologies
> 40 Continental Blvd
> Merrimack, NH 03054
> PHONE .......(603) 579-6180 / (800) 431-8031
> Cell phone ..(603) 320-7785
> FAX ...........(603) 578-1072
> EMAIL .......rsharpe at amherst1.com / Webpage ...www.amherst1.com
>
> "Tenemos que tener fe" ("We must have faith")
>
>
>
> -----Original Message-----
> From: ken at flyingtoasters.net [mailto:ken at flyingtoasters.net]
> Sent: Thursday, June 12, 2003 11:11 PM
> To: rsharpe at earthlink.net
> Cc: gnhlug at sophic.org; GNHLUG mailing list
> Subject: Re: Samba Question
>
> Well... it's a little hard to tell, since I don't know what it is you're
> doing to see the files, but it sounds as if you're not authenticating as a
> domain user. How are you seeing the files? Through an SMB browser (eg.
> Konqueror)? Mounting the SMB share? Whatever way, you should be telling
> it:
> your username
> your password
> and, implicitly or explicitly, the domain
> If you're not, you're likely logging in as guest, which pursuant
> permissions (or lack thereof).
>
> -Ken
>
>> Hi
>>
>> I have got myself confused, how do you make a Windows Server
>> 2000 share read/writeable using samba, I can attach just fine and read
>> but can not get write perms on the share through the samba mount
>> point.The Windows share has the perms set to full access for everyone.
>>
>> Thanks Much
>>
>> Rich
>> --
>> Richard A Sharpe
>> DBA - DB2/Sybase/Oracle/Sqlserver
>> Merrimack, NH 03054
>>
>> _______________________________________________
>> gnhlug-discuss mailing list
>> gnhlug-discuss at mail.gnhlug.org
>> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
>>
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
>
More information about the gnhlug-discuss
mailing list