LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2009, 11:09 AM   #1
gunalan
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Help Me !! " How a normal user can make a new partiton in Linux Machine"


Dear all,


Please give me the solution for the following:


1. Normal user can able to make a new linux partition and formated by ext3 file system.

2. Usually /etc/shadow file default permission is read only for user. Then how the new password will be updated in /etc/shadow file when normal user chage his old password to new password.


3. I am facing the following issue when i have taken a back of RAID device.

Error: Unable to copy due to I/O device error.

Suituation: Eralier i have configured a SAMBA server for File transger between Linux and Windows. I used Disk Mirroring (RAID 1)
for storage of Datas. Later RAID device was failed. Then i have connected the RAID device in another system and i start to copy the files from New Linux machine to windows machine. During this time i have got the above mentioned error (I/O device error).

So please help me the above mentioned issues.

Thanking You to all.
by
guna.
 
Old 03-18-2009, 12:14 PM   #2
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,787

Rep: Reputation: 211Reputation: 211Reputation: 211
The first part, if I understand the problem.

A normal user must have root privileges, usually as su or sudo with the root password, to have access to a systems partitions and its partitioning tools. As partitions can not be changed while they are mounted, and nothing runs without being mounted, a partitioning CD is often used for work on the partitions of an existing installation.

Try opening a terminal and typing "su" or "sudo", depending on your distro. You should be asked for your password. Enter it and then type "fdisk -l" and you will get to see your partition table. You might type "man fdisk" first to see what fdisk is and can do.

Two live-cd partitioners that are used are Parted Magic and GPartedLiveCD, but any linux live-cd should also do the job. Rescue and forensic live-cds also have partitioning tools.

Here is the standard live-cd list.

http://www.livecdlist.com/

You might also googe for more information on partitioning and permissions in linux.

For the next time, you might read this and try to edit your post for clarity.

http://www.linuxquestions.org/linux/...Ask_a_Question

Written English for a non-native speaker can be difficult, but you might get a greater response if the meaning of your post was easier to determine. I guessed what you needed for information, but I might be telling you what you already know.

Good Luck
 
Old 03-18-2009, 12:15 PM   #3
Lordandmaker
Member
 
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Rep: Reputation: 38
1. What do you mean by 'normal user'. In general, partition editing tools are only available to root, for what is in general very good reason. If you need non-root people to be able to use them, it's worth looking at sudo.
If by 'normal user' you mean 'someone unfamiliar with Linux', gparted is a graphical partion editor. You shouldn't go anywhere near it without a solid understanding of partitioning, though.

2. The user runs the `passwd` command. This is setuid to root. When you setuid a program, you make it always run as a particular user. So the user cannot edit /etc/shadow, but passwd can. This would be a reasonable solution to 1., as well, though generally less secure than sudo.
http://en.wikipedia.org/wiki/Setuid

3. Which system produced the error? The Windows one or the Linux one? What, exactly, were you doing?
 
Old 03-18-2009, 07:10 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,170

Rep: Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208
For fairly obvious reasons, "normal users" are forbidden to alter system-wide resources. This includes the ability to access disk-volumes directly, e.g. to repartition them.

Can you please better-describe what you are trying to achieve?
 
Old 03-24-2009, 12:52 PM   #5
ckua
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
the following is partition command,default format is EXT3


fdisk /dev/sdf(after mounting your disk,run dmesg | grep sd, replace "f" depending on the result for dmesg)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-621, default 1):<RETURN> Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-621, default 621): <RETURN> p
Device Boot Start End Blocks Id System
/dev/sdf1 1 621 395104 83 Linux
w


If you type something wrong, hit q to exit without saving changes.

Last edited by ckua; 03-24-2009 at 12:54 PM.
 
Old 03-24-2009, 05:30 PM   #6
JaksoDebr
Member
 
Registered: Mar 2009
Distribution: Fedora, Slackware
Posts: 104

Rep: Reputation: 21
If your replacement RAID device signals an 'I/O device error' then you are out of luck - it seems that both devices have some hardware problems. You should run fschk anyway, just to make sure that it's not a problem with the file system, something that can be cured.

Linux Archive

Last edited by JaksoDebr; 04-02-2009 at 06:05 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot access "man pages" as normal user - temp filename creation error. uncle-c Linux - Newbie 2 03-11-2008 02:10 PM
"su root" fails when I connect with normal user thru SSH AlinFaur Linux - Security 5 02-23-2006 12:26 AM
Submount, "permission denied" when writing to floppy as normal user DaneM Linux - Software 5 02-22-2006 03:05 PM
normal user want to perform "init 6" by using " sudo acbenny Linux - General 3 08-08-2004 08:41 AM
Accessing windows drive from my "normal" user. At0mic_PC Slackware 6 08-02-2003 12:33 AM


All times are GMT -5. The time now is 04:26 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration