LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-23-2010, 11:26 PM   #1
plbowler
Member
 
Registered: Nov 2003
Distribution: Mandrake 10 (KDE)
Posts: 53

Rep: Reputation: 15
Permission Denied on smbmount ed network drives


I am mounting using sbmmount

I can not write to any directories mounted.
I have included the below info as my issue outgrew nmy original thread here: http://www.linuxquestions.org/questi...881/page2.html


debian:~# ls -l /mnt/net/flac/
total 0
drwxr-xr-x+ 16 999 root 0 2010-03-20 10:19 gd_1976_project_7
drwxr-xr-x+ 24 999 root 0 2010-03-19 22:04 gd_1976_project_8
drwxr-xr-x+ 2 999 root 0 2010-03-19 18:02 gd74-06-18.sbd.miller.89690.sbeok.flac16
drwxr-xr-x+ 2 999 root 0 2010-03-19 17:32 gd74-06-22.mtx.seamons.106179.flac16


debian:~# ls -l /mnt/net/flac/gd74-06-18.sbd.miller.89690.sbeok.flac16
total 1030130
-rw-r--r-- 1 999 root 1155 2010-03-19 17:48 gd1974-06-18-ffp.89690.ffp
-rw-r--r-- 1 999 root 1176 2010-03-19 17:48 gd1974-06-18-flac-md5.89690.md5
-rw-r--r-- 1 999 root 2755 2010-03-19 17:48 gd74-06-18.89690.txt
-rw-r--r-- 1 999 root 28461840 2010-03-19 19:37 gd74-06-18d1t01.flac
-rw-r--r-- 1 999 root 31640341 2010-03-19 19:27 gd74-06-18d1t02.flac
-rw-r--r-- 1 999 root 42516139 2010-03-19 19:35 gd74-06-18d1t03.flac
-rw-r--r-- 1 999 root 41844282 2010-03-19 19:36 gd74-06-18d1t04.flac
-rw-r--r-- 1 999 root 23327945 2010-03-19 19:27 gd74-06-18d1t05.flac
-rw-r--r-- 1 999 root 40141474 2010-03-19 19:31 gd74-06-18d1t06.flac
-rw-r--r-- 1 999 root 21489368 2010-03-19 19:23 gd74-06-18d1t07.flac
-rw-r--r-- 1 999 root 90429460 2010-03-19 19:37 gd74-06-18d1t08.flac
-rw-r--r-- 1 999 root 34971372 2010-03-19 19:16 gd74-06-18d1t09.flac
-rw-r--r-- 1 999 root 33810809 2010-03-19 19:36 gd74-06-18d1t10.flac
-rw-r--r-- 1 999 root 34363552 2010-03-19 19:37 gd74-06-18d2t01.flac
-rw-r--r-- 1 999 root 29756153 2010-03-19 19:34 gd74-06-18d2t02.flac
-rw-r--r-- 1 999 root 48126872 2010-03-19 19:32 gd74-06-18d2t03.flac
-rw-r--r-- 1 999 root 160617874 2010-03-19 19:37 gd74-06-18d2t04.flac
-rw-r--r-- 1 999 root 98105735 2010-03-19 19:37 gd74-06-18d2t05.flac
-rw-r--r-- 1 999 root 19189248 2010-03-19 19:36 gd74-06-18d2t06.flac
-rw-r--r-- 1 999 root 47818627 2010-03-19 19:37 gd74-06-18d2t07.flac
-rw-r--r-- 1 999 root 33725681 2010-03-19 19:34 gd74-06-18d2t08.flac
-rw-r--r-- 1 999 root 56537171 2010-03-19 19:36 gd74-06-18d3t01.flac
-rw-r--r-- 1 999 root 66067550 2010-03-19 19:31 gd74-06-18d3t02.flac
-rw-r--r-- 1 999 root 70774671 2010-03-19 19:35 gd74-06-18d3t03.flac
-rw-r--r-- 1 999 root 2576 2010-03-19 17:50 md5ok
-rw-r--r-- 1 999 root 1979 2010-03-19 17:50 shntool.txt

3.
debian:~# ls -l /mnt
total 4
drwxr-xr-x 4 root root 4096 2010-03-21 21:18 net

after poking around I think I should mention that I mounted using smbmount with no modifiers.

More info:

debian:~# whoami
root
debian:~# pwd
/root
debian:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 errors=remount-ro 0 1
/dev/hda6 /home ext3 defaults 0 2
/dev/hda5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
debian:~# ls -l gd74-06-18.sbd.miller.89690.sbeok.flac16
ls: cannot access gd74-06-18.sbd.miller.89690.sbeok.flac16: No such file or directory
debian:~# ls -l gd74-06-18.sbd.miller.89690.sbeok.flac16/gd74-06-18d1t01.flac
ls: cannot access gd74-06-18.sbd.miller.89690.sbeok.flac16/gd74-06-18d1t01.flac: No such file or directory
debian:~# cd /mnt/net/flac/
debian:/mnt/net/flac#

Last edited by plbowler; 03-23-2010 at 11:28 PM.
 
Old 03-24-2010, 05:01 AM   #2
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
Hello,

Are you using ACL's on purpose?
Can you show us the command you use to mount your SMB file-systems?
Can you send the output of the 'mount' command, when all file-systems are mounted?

Thanks,
 
Old 03-24-2010, 05:02 AM   #3
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
can you refer following url ..

http://ubuntuforums.org/showthread.php?p=9015774

looks like similar ...
 
Old 03-24-2010, 09:56 AM   #4
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,252

Rep: Reputation: 205Reputation: 205Reputation: 205
Code:
More info:
You're root and you're in /root directory when you try to list gd74-06-18.sbd.miller.89690.sbeok.flac16 directory and gd74-06-18.sbd.miller.89690.sbeok.flac16/gd74-06-18d1t01.flac file. You should to skip to /mnt/net/flac/ directory before listing these files or list them using full paths. Apart of the above show us the result of the command touch gd74-06-18.sbd.miller.89690.sbeok.flac16/some_file. In that case rest in /mnt/net/flac/ directory too or use full path as well.

So show us the results of these commands:

Code:
cd /mnt/net/flac/
ls -l gd74-06-18.sbd.miller.89690.sbeok.flac16
ls -l gd74-06-18.sbd.miller.89690.sbeok.flac16/gd74-06-18d1t01.flac
touch gd74-06-18.sbd.miller.89690.sbeok.flac16/some_file
The result of that session put into CODE tags. These tags look like:

[ CODE ]
your
listing
of
the
session
[ /CODE ]

but you have to omit spaces after and before square brackets.
 
Old 03-24-2010, 04:57 PM   #5
plbowler
Member
 
Registered: Nov 2003
Distribution: Mandrake 10 (KDE)
Posts: 53

Original Poster
Rep: Reputation: 15
@rizhun- Not using ACL on purpose
using smbmount //frena/Disk1/MusicDL /mnt/net/flac
Will check mount command when I get home.

@Hardcore- I can ls the directories fine, but I will try CIFS

@W1k0- will do when I get home
 
Old 03-24-2010, 09:45 PM   #6
plbowler
Member
 
Registered: Nov 2003
Distribution: Mandrake 10 (KDE)
Posts: 53

Original Poster
Rep: Reputation: 15
rihzun
mount (I only mounted the one drive):

Code:
debian:/mnt/net/flac# mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hda6 on /home type ext3 (rw)
//freenas/Disk1/MusicDL on /mnt/net/flac type cifs (rw,mand)
debian:/mnt/net/flac#
w1k0
ls -l gd74-06-18.sbd.miller.89690.sbeok.flac16
Code:
debian:/mnt/net/flac# ls -l gd74-06-18.sbd.miller.89690.sbeok.flac16
total 1030130
-rw-r--r-- 1 999 root      1155 2010-03-19 17:48 gd1974-06-18-ffp.89690.ffp
-rw-r--r-- 1 999 root      1176 2010-03-19 17:48 gd1974-06-18-flac-md5.89690.md5
-rw-r--r-- 1 999 root      2755 2010-03-19 17:48 gd74-06-18.89690.txt
-rw-r--r-- 1 999 root  28461840 2010-03-19 19:37 gd74-06-18d1t01.flac
-rw-r--r-- 1 999 root  31640341 2010-03-19 19:27 gd74-06-18d1t02.flac
-rw-r--r-- 1 999 root  42516139 2010-03-19 19:35 gd74-06-18d1t03.flac
-rw-r--r-- 1 999 root  41844282 2010-03-19 19:36 gd74-06-18d1t04.flac
-rw-r--r-- 1 999 root  23327945 2010-03-19 19:27 gd74-06-18d1t05.flac
-rw-r--r-- 1 999 root  40141474 2010-03-19 19:31 gd74-06-18d1t06.flac
-rw-r--r-- 1 999 root  21489368 2010-03-19 19:23 gd74-06-18d1t07.flac
-rw-r--r-- 1 999 root  90429460 2010-03-19 19:37 gd74-06-18d1t08.flac
-rw-r--r-- 1 999 root  34971372 2010-03-19 19:16 gd74-06-18d1t09.flac
-rw-r--r-- 1 999 root  33810809 2010-03-19 19:36 gd74-06-18d1t10.flac
-rw-r--r-- 1 999 root  34363552 2010-03-19 19:37 gd74-06-18d2t01.flac
-rw-r--r-- 1 999 root  29756153 2010-03-19 19:34 gd74-06-18d2t02.flac
-rw-r--r-- 1 999 root  48126872 2010-03-19 19:32 gd74-06-18d2t03.flac
-rw-r--r-- 1 999 root 160617874 2010-03-19 19:37 gd74-06-18d2t04.flac
-rw-r--r-- 1 999 root  98105735 2010-03-19 19:37 gd74-06-18d2t05.flac
-rw-r--r-- 1 999 root  19189248 2010-03-19 19:36 gd74-06-18d2t06.flac
-rw-r--r-- 1 999 root  47818627 2010-03-19 19:37 gd74-06-18d2t07.flac
-rw-r--r-- 1 999 root  33725681 2010-03-19 19:34 gd74-06-18d2t08.flac
-rw-r--r-- 1 999 root  56537171 2010-03-19 19:36 gd74-06-18d3t01.flac
-rw-r--r-- 1 999 root  66067550 2010-03-19 19:31 gd74-06-18d3t02.flac
-rw-r--r-- 1 999 root  70774671 2010-03-19 19:35 gd74-06-18d3t03.flac
-rw-r--r-- 1 999 root      2576 2010-03-19 17:50 md5ok
-rw-r--r-- 1 999 root      1979 2010-03-19 17:50 shntool.txt
debian:/mnt/net/flac#
ls -l gd74-06-18.sbd.miller.89690.sbeok.flac16/gd74-06-18d1t01.flac

Code:
debian:/mnt/net/flac# ls -l gd74-06-18.sbd.miller.89690.sbeok.flac16/gd74-06-18d1t01.flac
-rw-r--r-- 1 999 root 28461840 2010-03-19 19:37 gd74-06-18.sbd.miller.89690.sbeok.flac16/gd74-06-18d1t01.flac
debian:/mnt/net/flac#
touch gd74-06-18.sbd.miller.89690.sbeok.flac16/shntool.txt

Code:
debian:/mnt/net/flac# touch gd74-06-18.sbd.miller.89690.sbeok.flac16/shntool.txt
touch: cannot touch `gd74-06-18.sbd.miller.89690.sbeok.flac16/shntool.txt': Permission denied
debian:/mnt/net/flac#
good times...


UPDATE!!!!
While I didn't get the process to run exactly like I had originally thought, BUT:
check this out:
I had already mounted the source drive, so the I mounted the destination drive then converted a flac to mp3 and dumped it in the shared drive of the media PC

Code:
debian:/mnt/net/flac# mount -t cifs //HOMEET/mp3 /mnt/net/mp3
Password:
debian:/mnt/net/flac# flac -d -c "/mnt/net/flac/gd74-06-22.mtx.seamons.106179.flac16/gd74-06-22d1t12.flac" | lame --r3mix - "/mnt/net/mp3/test"

flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007  Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

gd74-06-22d1t12.flac: done
LAME 3.98.2 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 17960 Hz - 18494 Hz
Encoding <stdin> to /mnt/net/mp3/test
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III VBR(q=3)
debian:/mnt/net/flac#
I dont actually need to write to the /mnt/net/flac directory becuase that's not where I'll be pulling the MP3's from.

this will work.

Done for the night!!!

thanks all

Last edited by plbowler; 03-24-2010 at 11:06 PM.
 
Old 03-25-2010, 07:50 AM   #7
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,252

Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by plbowler View Post
I had already mounted the source drive, so the I mounted the destination drive then converted a flac to mp3 and dumped it in the shared drive of the media PC

Code:
debian:/mnt/net/flac# mount -t cifs //HOMEET/mp3 /mnt/net/mp3
Password:
debian:/mnt/net/flac# flac -d -c "/mnt/net/flac/gd74-06-22.mtx.seamons.106179.flac16/gd74-06-22d1t12.flac" | lame --r3mix - "/mnt/net/mp3/test"
I dont actually need to write to the /mnt/net/flac directory becuase that's not where I'll be pulling the MP3's from.
I wonder why you convert FLAC files to MP3 files. In this way you waste processor time as well as disk space and you lose a bit of sound quality. You can simply play FLAC files with play command or using moc (see: http://moc.daper.net/) without any conversion. The first is command line program -- the second is console or xterm player.

Anyway if you consider your problem is solved mark this thread as SOLVED.
 
Old 03-25-2010, 08:23 AM   #8
plbowler
Member
 
Registered: Nov 2003
Distribution: Mandrake 10 (KDE)
Posts: 53

Original Poster
Rep: Reputation: 15
Funny,
we've come full circle.
The mp3 answer is simple...iPhone.

I am a good boy and convert at 256, but i have no choice, even if Steve would let me put aflac on my iPhone, two Grateful Dead shows would fill it up.

This thread is not solved in the sense that someone searching for information on permissions problems on SMB mounted drives will find an answer, but I have figured out a work around.
I'm not sure we should mark it solved.
 
Old 03-25-2010, 08:42 AM   #9
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
If you don't need ACL, try turning it off...

Code:
mount.cifs //freenas/Disk1/MusicDL /mnt/net/flac -o noacl
 
  


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
Help with mounting samba share: smbmount or mount.cifs error: permission denied wdli Linux - Server 1 08-12-2009 12:31 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM
Permission denied from W2K3 shares mounted by SMBMOUNT john_lawson Linux - Networking 1 06-14-2006 04:33 PM
smbmount - permission denied Kalidor Linux - Networking 2 02-01-2005 11:18 PM
smbmount works but I get permission denied when access the drive jeickal Linux - Networking 0 12-17-2004 12:22 PM


All times are GMT -5. The time now is 04:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration