Using sudo gives "permission denied"
Using sudo gives "permission denied"
Getting permission denied with this. ??
cd /
sudo cd /mnt/sda1
cd /
sudo cd /mnt/sda1
Hey root, ya don't need su or the directory change.
http://www.fprimex.com/linux/console-intro.html
http://bash.cyberciti.biz/guide/Main_Page
If @ first you don't succeed..
Code: Select all
mount /dev/sdb1 /mnt/sdb1
http://bash.cyberciti.biz/guide/Main_Page
If @ first you don't succeed..
You missed the pun in Mick's reply. Post the output here:
Code: Select all
ls -l /
ls -l
drwxr-xr-x 2 root root 4096 Feb 13 20:22 Bash_Scripts
drwxr-xr-x 6 root root 4096 Oct 3 2012 Choices
drwxr-xr-x 2 root root 4096 Feb 13 20:21 Desktop
-rw-r--r-- 1 root root 12462 Aug 12 2013 DOTicewmmenu.bak
-rw-r--r-- 1 root root 21097 Aug 12 2013 DOTjwmrc.bak
drwxr-xr-x 2 root root 4096 Feb 14 20:31 Downloads
drwxr-xr-x 3 root root 4096 Mar 14 2008 File-Sharing
drwxrwxrwx 2 ftp root 4096 Jan 7 2008 ftpd
drwxr-xr-x 2 root root 4096 Feb 13 20:22 Icons
-rw-r--r-- 1 root root 0 Feb 14 20:42 ls.txt
drwxr-xr-x 4 root root 4096 Aug 5 2013 my-applications
drwxr-xr-x 4 root root 4096 Aug 5 2013 my-documents
drwxr-xr-x 3 root root 4096 Oct 29 2012 network
drwxr-xr-x 3 root root 4096 Jan 22 2013 programs
drwxr-xr-x 2 root root 4096 Aug 5 2013 puppy-reference
drwxr-sr-x 6 spot spot 4096 Aug 5 2013 spot
drwxr-xr-x 2 root root 4096 Feb 13 20:03 Startup
drwxr-xr-x 2 root root 4096 Feb 13 20:21 Storage
drwxr-xr-x 2 root root 4096 Feb 13 20:24 Wallpapers
drwxr-xr-x 2 root root 4096 Feb 13 20:24 Wallpapers_original
drwxr-sr-x 3 webuser webgroup 4096 Jul 17 2009 Web-Server
drwxr-xr-x 2 root root 4096 Feb 13 20:22 Bash_Scripts
drwxr-xr-x 6 root root 4096 Oct 3 2012 Choices
drwxr-xr-x 2 root root 4096 Feb 13 20:21 Desktop
-rw-r--r-- 1 root root 12462 Aug 12 2013 DOTicewmmenu.bak
-rw-r--r-- 1 root root 21097 Aug 12 2013 DOTjwmrc.bak
drwxr-xr-x 2 root root 4096 Feb 14 20:31 Downloads
drwxr-xr-x 3 root root 4096 Mar 14 2008 File-Sharing
drwxrwxrwx 2 ftp root 4096 Jan 7 2008 ftpd
drwxr-xr-x 2 root root 4096 Feb 13 20:22 Icons
-rw-r--r-- 1 root root 0 Feb 14 20:42 ls.txt
drwxr-xr-x 4 root root 4096 Aug 5 2013 my-applications
drwxr-xr-x 4 root root 4096 Aug 5 2013 my-documents
drwxr-xr-x 3 root root 4096 Oct 29 2012 network
drwxr-xr-x 3 root root 4096 Jan 22 2013 programs
drwxr-xr-x 2 root root 4096 Aug 5 2013 puppy-reference
drwxr-sr-x 6 spot spot 4096 Aug 5 2013 spot
drwxr-xr-x 2 root root 4096 Feb 13 20:03 Startup
drwxr-xr-x 2 root root 4096 Feb 13 20:21 Storage
drwxr-xr-x 2 root root 4096 Feb 13 20:24 Wallpapers
drwxr-xr-x 2 root root 4096 Feb 13 20:24 Wallpapers_original
drwxr-sr-x 3 webuser webgroup 4096 Jul 17 2009 Web-Server
Sorry.
total 44
drwxr-xr-x 2 root root 4096 Feb 13 19:48 bin
drwxr-xr-x 3 root root 4096 Feb 13 19:49 boot
drwxr-xr-x 12 root root 13640 Feb 15 15:01 dev
drwxr-xr-x 42 root root 4096 Feb 15 2014 etc
-rw-rw-rw- 1 root root 10 Feb 15 15:01 fsckme.flg
drwxr-xr-x 9 root root 4096 Feb 14 20:58 lib
drwxr-xr-x 14 root root 4096 Feb 15 2014 mnt
drwxr-xr-x 2 root root 4096 Aug 5 2013 opt
dr-xr-xr-x 95 root root 0 Feb 15 2014 proc
drwxr-xr-x 43 root root 4096 Feb 15 15:03 root
lrwxrwxrwx 1 root root 3 Aug 5 2013 run -> tmp
drwxr-xr-x 2 root root 4096 Feb 13 19:48 sbin
dr-xr-xr-x 12 root root 0 Feb 15 2014 sys
drwxrwxrwt 10 root root 780 Feb 15 15:01 tmp
drwxr-xr-x 18 root root 4096 Jan 14 07:51 usr
drwxr-xr-x 17 root root 4096 Jun 1 2007 var
total 44
drwxr-xr-x 2 root root 4096 Feb 13 19:48 bin
drwxr-xr-x 3 root root 4096 Feb 13 19:49 boot
drwxr-xr-x 12 root root 13640 Feb 15 15:01 dev
drwxr-xr-x 42 root root 4096 Feb 15 2014 etc
-rw-rw-rw- 1 root root 10 Feb 15 15:01 fsckme.flg
drwxr-xr-x 9 root root 4096 Feb 14 20:58 lib
drwxr-xr-x 14 root root 4096 Feb 15 2014 mnt
drwxr-xr-x 2 root root 4096 Aug 5 2013 opt
dr-xr-xr-x 95 root root 0 Feb 15 2014 proc
drwxr-xr-x 43 root root 4096 Feb 15 15:03 root
lrwxrwxrwx 1 root root 3 Aug 5 2013 run -> tmp
drwxr-xr-x 2 root root 4096 Feb 13 19:48 sbin
dr-xr-xr-x 12 root root 0 Feb 15 2014 sys
drwxrwxrwt 10 root root 780 Feb 15 15:01 tmp
drwxr-xr-x 18 root root 4096 Jan 14 07:51 usr
drwxr-xr-x 17 root root 4096 Jun 1 2007 var
So, in Puppy, this still throws a permission denied?
Yes? Is there an sdb1 in /mnt?
Can you "cd" there?
Code: Select all
mount /dev/sdb1 /mnt/sdb1
Can you "cd" there?