LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 04-06-2009, 07:58 PM   #1
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Rep: Reputation: Disabled
samba shared win box partition permission denied


Hi all!

heres scenario:

i have winbox wich i have shared its partition to share it with my linux box

everything worked fine except the linux box was inproperly shut down

mount -t smbfs -ousername=administrator,fmask=755,dmask=755 //192.168.0.201/f /root/DISKF/

thats command i used to mount

now i can browse shared partition and i see it
but cant transfer anything to it or i cant create test directory

it says:
mkdir: cannot create directory `d': Permission denied


what could go wrong if my winbox is untouched

thanks!

Last edited by matters; 04-06-2009 at 07:59 PM.
 
Old 04-07-2009, 02:47 AM   #2
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Hi.

I'm definately not an expert on this, but here it goes...

Don't you have to provide a password along with the username? And what happens if you try and use the cifs file system?
 
Old 04-07-2009, 06:56 AM   #3
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kenneho View Post
Hi.

I'm definately not an expert on this, but here it goes...

Don't you have to provide a password along with the username? And what happens if you try and use the cifs file system?
i didnt specify administrator password on winbox so when it prompts i hit enter just like i did before when it worked.

when i specify -t cifs it also gives me permission denied
 
Old 04-07-2009, 08:28 AM   #4
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
I see... what does "smbclient -L <winbox> -U administrator" output?
 
Old 04-07-2009, 11:33 AM   #5
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kenneho View Post
I see... what does "smbclient -L <winbox> -U administrator" output?
heres output
Code:
smbclient -L 192.168.0.201 -U administrator
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
        No such file or directory
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
Password:
Domain=[FILM-EDIT] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        E$              Disk      Default share
        IPC$            IPC       Remote IPC
        D$              Disk      Default share
        G$              Disk      Default share
        F$              Disk      Default share
        F               Disk
        ADMIN$          Disk      Remote Admin
        H$              Disk      Default share
        C$              Disk      Default share
session request to 192.168.0.201 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[FILM-EDIT] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
Its the F partition im accessing that gives permission denied

i dont have samba server btw
 
Old 04-08-2009, 06:10 AM   #6
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Seems like you should run the "testparm" command to debug your samba configuration file.

But anyways, I see that you have both "F" and "F$". Have you tried to mount both, and with cifs? Can you provide the output from these commands?
 
Old 04-09-2009, 08:14 AM   #7
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kenneho View Post
Seems like you should run the "testparm" command to debug your samba configuration file.

But anyways, I see that you have both "F" and "F$". Have you tried to mount both, and with cifs? Can you provide the output from these commands?
heres output
Code:
root@parade:~# mount -t cifs -ousername=administrator,rw //192.168.0.201/f$ /root/tata/DISKF/
Password:
mount error 13 = Permission denied
heres only with f

Code:
root@parade:~# mount -t cifs -ousername=administrator,rw //192.168.0.201/f /root/tata/DISKF/
Password:
root@parade:~# root@parade:~# cd /root/tata/DISKF/
root@parade:~/tata/DISKF# ls
1024049313-1-Basic
14Starship
71528-Goneinsixtyseconds720p.srt
76216-SlumdogMillionaire_2008_DvDrip_Hr_FXG.rar
76477-tmgsmavc720p.srt
7z457.exe
Abexo.Cleaner_CW.rar
AliveHDVideoConverter.exe
Aris_6
Auxiliary Files
Beacon Teaches Typing
Certificat Ispit
CyberLink.2021U_DVD080826-01.exe
DNS_UPUSTVO.doc
Fedor Emelianenko - Matt Lindland.mpg
GFI.LANguard.Network.Security.Scanner.v8.0.20070525
Ghost 0
Igre
MCSA012008
MIRO NE DIRAJ G
MOJE NE DIRATI
MPEG_Streamclip_1.2.zip
Miro Karta za Berlin.pdf
Modem MaxTV
NEDIRAJ
NEDIRAJ2
NEDIRAJ3
Newsleecher 3.9 Super Search
P1i__UG_R1a_EN_24.pdf
Pinnacle_studio_ultimate_12
QUAD_RegistryCleaner_v.1.5.67.exe
root@parade:~/tata/DISKF# mkdir test
mkdir: cannot create directory `test': Permission denied
root@parade:~/tata/DISKF#
as u can see i cant create directories,

i can also enter the existing directories but cant list the content in them

Last edited by matters; 04-09-2009 at 08:16 AM.
 
Old 04-10-2009, 07:41 AM   #8
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
I believe CIFS is meant to replace SMBFS, so I'd like you to have a go at that. I guess this doens't work for you either:

mount.cifs //192.168.0.201/f$ /root/tata/DISKF/ -ousername=administrator,rw

?

Have you checked to logs on the windows box?
 
Old 04-11-2009, 03:22 AM   #9
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kenneho View Post
I believe CIFS is meant to replace SMBFS, so I'd like you to have a go at that. I guess this doens't work for you either:

mount.cifs //192.168.0.201/f$ /root/tata/DISKF/ -ousername=administrator,rw

?

Have you checked to logs on the windows box?
no it also dosent work,

i wish i could know where to check winbox logs, i tried to check event logger but cant find anything suspicious

what else it might be that will allow me to fix this problem?

Last edited by matters; 04-14-2009 at 06:40 AM.
 
  


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
Cannot see my Win XP SP2 box with shared printer from my SUSE Pro 9.3 box thorlin Linux - Networking 3 09-11-2005 02:16 PM
cannot open shared object file: Permission denied cchristian Linux - Software 5 07-30-2005 11:52 AM
permission denied shared libraries fc4 hayzo Fedora 1 07-15-2005 07:09 AM
mounted win partition: permission probl in win? eeried Linux - Newbie 4 08-01-2004 05:52 AM
Win/Linux shared partition permission problems Ice Dragon Linux - Newbie 3 03-19-2004 06:52 PM


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