LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-12-2019, 08:24 PM   #1
arasuk
Member
 
Registered: Nov 2015
Posts: 30

Rep: Reputation: Disabled
Permission denied for dd command


I get permission denied for the following command when I tried
clone the .gz file. Even when the password given not seems doing.

arasu@lihome:~/Downloads$ sudo gunzip -c linux-mint.gz | dd of=/dev/sdb status=progress
dd: failed to open '/dev/sdb': Permission denied
 
Old 11-12-2019, 08:32 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
if this actually works in theory.
Code:
sudo gunzip -c linux-mint.gz | dd of=/dev/sdb status=progress
then it is this
Code:
sudo gunzip -c linux-mint.gz | sudo dd of=/dev/sdb status=progress
just log in root
Code:
su
passwd
#gunzip -c linux-mint.gz | dd of=/dev/sdb status=progress
it might not even need to be entirely ran as root. Thererfore, just switch around what you've came up with.
Code:
gunzip -c linux-mint.gz | sudo dd of=/dev/sdb status=progress
unzip, or untar it s a user, and dd it as root

Last edited by BW-userx; 11-13-2019 at 07:01 AM.
 
1 members found this post helpful.
Old 11-12-2019, 08:33 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

looks like you are running gunzip as root, but dd as arasu.

Evo2.
 
1 members found this post helpful.
  


Reply

Tags
dd, permission denied



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
[SOLVED] Execute permission set but permission denied when unlocking IronKey mdh524 Linux - Newbie 2 11-12-2015 09:36 PM
mkdir throws Permission Denied error in a directoy even with root ownership and 777 permission surajchalukya Linux - Security 14 09-03-2012 08:34 AM
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
busybox command works, same command within script says permission denied jeroenv Linux - Newbie 2 01-17-2009 02:58 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:27 AM.

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
Open Source Consulting | Domain Registration