LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permission Denied on smbmount ed network drives (https://www.linuxquestions.org/questions/linux-newbie-8/permission-denied-on-smbmount-ed-network-drives-797448/)

plbowler 03-23-2010 10:26 PM

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#

rizhun 03-24-2010 04:01 AM

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,

hardcorelinux 03-24-2010 04:02 AM

can you refer following url ..

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

looks like similar ...

w1k0 03-24-2010 08:56 AM

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.

plbowler 03-24-2010 03:57 PM

@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

plbowler 03-24-2010 08:45 PM

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

w1k0 03-25-2010 06:50 AM

Quote:

Originally Posted by plbowler (Post 3911150)
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.

plbowler 03-25-2010 07:23 AM

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.

rizhun 03-25-2010 07:42 AM

If you don't need ACL, try turning it off...

Code:

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


All times are GMT -5. The time now is 07:21 AM.