LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-16-2003, 05:59 AM   #1
Encrypted
LQ Newbie
 
Registered: Jan 2003
Distribution: Red Hat 8.0, Debian 3.0
Posts: 20

Rep: Reputation: 0
Changing Permission of a command


Hi,

i just got the ntfs support working for my kernel,
so now i want to mount the partition where windows is located,
the only problem is, only root can mount devices,
i tried lots of stuff to change permissions of the directory, but i didnt succeed once, i tried it with chown and chmod, but i still dont have the permissions,
now is there a way to change the permissions of a command?

thanks in advance

Encrypted
 
Old 01-16-2003, 06:06 AM   #2
ajk
Member
 
Registered: Nov 2002
Location: CH-3416 Affoltern
Distribution: (SuSE 8.0), Mandrake 9.2
Posts: 58

Rep: Reputation: 15
working with sudo could help.
At home, i use this for mounting smb-shares.
But to mount a local ntfs drive, you can also insert a "user" is your fstab, since i assume, you want to insert the drive there...

greets ajk
 
Old 01-16-2003, 06:20 AM   #3
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
xsu google search it
gsu http://evolvedoo.sourceforge.net/gsu/


you don't have the distro you are using listed so i'll just say that from a term window you would type something like:
xsu etherape

and a little window would pop up for you to enter the root password
 
Old 01-16-2003, 06:42 AM   #4
Encrypted
LQ Newbie
 
Registered: Jan 2003
Distribution: Red Hat 8.0, Debian 3.0
Posts: 20

Original Poster
Rep: Reputation: 0
thanks guys


and im using red hat 8.0,

encrypted

[edit]
allright i tried the sudo command, but since only root is in the sudoers file yet, i couldnt execute any commands yet,
so, to edit the sudoers file you need visudo, and that command is unkown to my bash.....

Anyone know where i can get the visudo tool?

thanks again

encrypted
[/edit]

Last edited by Encrypted; 01-16-2003 at 07:11 AM.
 
Old 01-16-2003, 07:17 AM   #5
Encrypted
LQ Newbie
 
Registered: Jan 2003
Distribution: Red Hat 8.0, Debian 3.0
Posts: 20

Original Poster
Rep: Reputation: 0
Never mind that last question,

it works now

[edit]
Ok, another problem.....

So i do

sudo -u root mount -t ntfs /dev/hda1 /mnt/windows
Password:

amd i type my password.
But now i still cant access /mnt/windows........
only root can access that directory.....

before i try that GNOME Superuser program, does anybody know an easy solution for my problem

thanks.......

Last edited by Encrypted; 01-16-2003 at 07:22 AM.
 
Old 01-16-2003, 07:30 AM   #6
ajk
Member
 
Registered: Nov 2002
Location: CH-3416 Affoltern
Distribution: (SuSE 8.0), Mandrake 9.2
Posts: 58

Rep: Reputation: 15
Yes.
Isert this ntfs drive in your /etc/fstab. Use the param user. From now on, you should be able to mount the drive. Since I'm @uni, i can't give you correct syntax right now...

Or: sudo -u root mount -t ntfs -o uid=xxx /dev/hda1 /mnt/windows

uid=xxx means your user ID. This works, but I'm not shure whether it's correct like that.

**man mount** for further help

Last edited by ajk; 01-16-2003 at 07:33 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing permission jaakkop Slackware 1 09-29-2004 12:08 PM
Changing permission. jaakkop Slackware 1 09-17-2004 01:41 PM
Changing Files without permission dolphans1 Mandriva 20 09-17-2004 12:16 PM
Changing permission on commands erraticassassin Slackware 3 07-13-2004 02:46 AM
Changing access permission LinuxVirgIan Linux - Newbie 16 07-05-2004 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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