LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-17-2014, 12:45 AM   #1
arunmatty
LQ Newbie
 
Registered: Jul 2014
Posts: 2

Rep: Reputation: Disabled
partition pblms


hi frds i am currently learning abt the partitions in linux and i used the command what i mentioned in the below please clear my pblms

[root@localhost /]# /dev/sda
bash: /dev/sda: Permission denied
[root@localhost /]# chmod 700 /dev/sda
[root@localhost /]# /dev/sda
bash: /dev/sda: Permission denied
[root@localhost /]# chmod 777 /dev/sda
[root@localhost /]# /dev/sda
bash: /dev/sda: Permission denied
[root@localhost /]#
 
Old 07-17-2014, 07:21 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,532

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
/dev/sda
That's not a command and nothing would be expected to happen. I would have thought you would get 'command not found'.
The chmod command changes permissions on directories/files and you need to be careful with it. If you had actually been able to do a chmod 777 to your whole system, it would have been damaged likely beyond repair. Just saw a post here from someone who did that a week or two ago.

If you want to learn chmod, open a terminal and type: man chmod

There are countless tutorials on Linux permissions and partitions available but if you have a specific question, feel free to post. Also when you post it usually helps to indicate which distribution of Linux you are using as there are hundreds.
 
Old 07-22-2014, 04:32 AM   #3
linuxfreakz
LQ Newbie
 
Registered: Jul 2014
Location: Karachi
Distribution: Ubuntu
Posts: 10

Rep: Reputation: Disabled
hi,

You need to learn Linux Basic, regarding file-system and commands then apply on Linux system.

---
linuxfreakz
 
Old 07-22-2014, 09:20 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,652

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by arunmatty View Post
hi frds i am currently learning abt the partitions in linux and i used the command what i mentioned in the below please clear my pblms

[root@localhost /]# /dev/sda
bash: /dev/sda: Permission denied
[root@localhost /]# chmod 700 /dev/sda
[root@localhost /]# /dev/sda
bash: /dev/sda: Permission denied
[root@localhost /]# chmod 777 /dev/sda
[root@localhost /]# /dev/sda
bash: /dev/sda: Permission denied
[root@localhost /]#
First, please read the LQ Rules...you need to spell out your words, and not use text-speak. And you don't have a 'problem' based on what you posted...but if you continue like you're going, you WILL have major problems soon.

You are logged in as root, which is a very, VERY bad idea...more so when you aren't experienced. Second, there are man pages for any linux command...access them by typing in "man <command name>", such as "man chmod", and it will explain what the commands do. You have changed permissions on a device...not a good thing. Programs run...devices don't...so by what you posted, you don't have a problem.
 
  


Reply



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
HowTo convert Primary Partition to Logical (ie move it inside the Extended Partition) Tom6 Linux - Software 3 11-29-2010 03:40 PM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:02 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