Using sudo gives "permission denied"

Using applications, configuring, problems
Post Reply
Message
Author
fixit

Using sudo gives "permission denied"

#1 Post by fixit »

Getting permission denied with this. ??

cd /
sudo cd /mnt/sda1

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2 Post by 01micko »

Who are you?

Code: Select all

# whoami
Puppy Linux Blog - contact me for access

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#3 Post by Semme »

Hey root, ya don't need su or the directory change.

Code: Select all

mount /dev/sdb1 /mnt/sdb1
http://www.fprimex.com/linux/console-intro.html

http://bash.cyberciti.biz/guide/Main_Page

If @ first you don't succeed..

fixit

#4 Post by fixit »

Semme,

Same result - permission denied.

Andy

fixit

#5 Post by fixit »

01micko wrote:Who are you?

Code: Select all

# whoami
root

Andy

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#6 Post by Semme »

You missed the pun in Mick's reply. :D Post the output here:

Code: Select all

ls -l /

fixit

#7 Post by fixit »

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

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#8 Post by Semme »

Andy, you fell short a character. The "/" represent *system* root.

fixit

#9 Post by fixit »

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

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#10 Post by Semme »

So, in Puppy, this still throws a permission denied?

Code: Select all

mount /dev/sdb1 /mnt/sdb1
Yes? Is there an sdb1 in /mnt?

Can you "cd" there?

fixit

#11 Post by fixit »

Semme,

That problem was with the newest Linux Mint.

The developers chose to put more emphasis on security and "the average user is not tech savvy." mindset.

I have deleted it. :-)

Andy

Post Reply