LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-05-2004, 02:08 PM   #1
whoiam
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: Mandrake
Posts: 6

Rep: Reputation: 0
Root Vs ***user


Note:- I'm not for familiar with Linux, But have keen desire to be.

Hi,
First of all, Greetings to all linuxquestion.org members. This my first post here.

I install Mandrake9.1 on my PC contain Intel manufactured 865GBF Motherboard, Nvidia Geforce4/Creative SB Live!, 40Gb. Samsung HDD and Sony CD/CD-RW/DVD Combo. I'm Facing following problems.

Problem no. 1.
As soon as I login As Root, Linux run properly, but I can't see anything on my desktop. No Icon, LinuxMenu (Start Menu) also doesn't respond to Windows Key. But all things works fine when I do loogin from ***user.


Problem no. 2.
I try my hand for mounting NTFS partition, I use Diskdrake, anyhow somehow, I'm succeed to mounting it. Even though I still don't know I'm doing right or not. I just give mount point to /dev/hda1as /windows/cdrive for Windows partition and press the mount button. Now I'm able to access these mounted drives, But as root only. When I tried it from ***user, it says "You don't have permissions to access this file."

Problem no 3.
Just assume I mount windows partition in /dev/c and so on, If I delete the /dev/c file, does it delete my drive partition also, once one of my friend says, In linux every thing is a file.

Problem no. 4
I just download some pdf files form mandrake support site to read and learn, I download it from windows coz of Downloaded manager, switch to linux, and mention above login as root to access ntfs partition system, copy all those files to /***user/linuxguide/ and login as ***user, but to my great dismay, I just can't access those file, it say I don't have enough permission to access thease file.

Please suggest what to do.

I know I can google it, I tried, Even not only google, I also try reading help from linux itself, But found nothing suit to my need.

I had Have problem with my sound card, But In desire to learn linux, I just purchase a new linux compatible sound card, Just for learning linux. I Lost my data two times when I trying installing, But the desire doesn't seems to be fade. Please help me to learn something.
 
Old 10-05-2004, 02:21 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Problem 1. This is done on purpose by Mandrake for security reasons. Instead use a console windows and use the su command.

Problem 2. You need to modify the /etc/fstab to allow regular users to mount and access. Post your /etc/fstab file.

Problem 3. No, it will not delete the actual partition or data contained within. And yes everything is considered a file.

Problem 4. When the files copied their permissions were set automatically for root access only. You need to use the chmod command change permissions.

See the man pages for information on the chmod command.
 
Old 10-06-2004, 02:01 AM   #3
spariggio82
Member
 
Registered: Apr 2004
Location: Camporotondo Etneo, Sicily
Distribution: SuSE 8.2 SuSE 9.1 Fedora C1 Slackware 10.1 Knoppix 3.9
Posts: 174

Rep: Reputation: 30
Ok

Let's try to answer something of your questions:

2) insert this options in your /etc/fstab file ( You MUST be root to do it )

example:
/dev/hda5 /windows/D vfat users,gid=users,umask=0002,iocharset=ut

with this tip even problem 4 should be solved

See you

Last edited by spariggio82; 10-07-2004 at 12:43 AM.
 
Old 10-06-2004, 10:46 AM   #4
whoiam
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: Mandrake
Posts: 6

Original Poster
Rep: Reputation: 0
Here is my /etc/fstab file.

/dev/hdc1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdc6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=iso8859-1,codepage=850,umask=0 0 0
//khr/C /mnt/khr/c smbfs user,username=%,noauto 0 0
none /proc proc defaults 0 0
/dev/hda1 /windows/c ntfs defaults 0 0
/dev/hda5 /windows/d ntfs defaults 0 0
/dev/hda6 /windows/e ntfs defaults 0 0
/dev/hdc5 swap swap defaults 0 0


I try to give permission for mounted drive for another user. But it reply with error that I can not set permission for this folder. I do this as root. I click on folder, click on properties for /windows/c and set permission. as root. What is the simple command to mount NTFS partition in RW mode and allow this to all user.
 
Old 10-06-2004, 11:00 AM   #5
whoiam
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: Mandrake
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by michaelk
Problem 1. This is done on purpose by Mandrake for security reasons. Instead use a console windows and use the su command.
There is no problem with mandrake8.2, is this feature come after mandrake8.2
 
Old 10-06-2004, 12:56 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Quote:
There is no problem with mandrake8.2, is this feature come after mandrake8.2
Yes.


You can not set permissions of a mount point when the filesystem is mounted.

/dev/hda1 /windows/c ntfs defaults 0 0

should be:
/dev/hda1 /windows/c ntfs users,umask=222 0 0

That way any user can mount or unmount the filesystem as read only. You will need to recompile the kernel for NTFS read / write support but it is not recommended. In computer years MDK 9.1 would have really old drivers. I prefer using a FAT32 filesystem to share data.

I do not have any actual experience but check the following:
http://www.jankratochvil.net/project/captive/
 
  


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
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
Scanner to work as USER and not forced as ROOT Root (Suse 9.1) 1kyle Linux - Hardware 0 07-10-2004 08:51 AM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-07-2004 11:11 PM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:29 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
Open Source Consulting | Domain Registration