LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-12-2004, 05:41 PM   #1
ruwach
Member
 
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73

Rep: Reputation: 15
how do i get permission for my drive?


hey there.

i just bought a new hard drive, and partitioned it like this to load debian

hda1 /
hda2 /swap
hda3 /stuff

i made a backup ( as root ) everything onto hda3 ( /stuff) like the .mozilla-thunderbird dirrectory and some music and stuff. i wanted to save my addressbook and such when i reinstalled everything. but now when i try to copy it over to /home/ruwach - me, it gives me all permission denied. so i copied it as root and i still dont have access to it as ruwach ( my user name)

so what can i do, and how can i modify /etc/fstab to automatically mount it when i boot and give me as user permission to do whatever i want with it..

here is what i have tried so far.

chmod 777 - no dice
chown /stuff to ruwach - not valid user


any help would ...... be a lot of help - thanks
 
Old 06-12-2004, 06:24 PM   #2
Gnuru
Member
 
Registered: Jan 2004
Posts: 53

Rep: Reputation: 15
As you reinstalled it sounds like ruwach doesn't exist. Did you copy /etc? Check /etc/passwd. If ruwach isn't there, add ruwach as a user.

Then chown /stuff to ruwach.
 
Old 06-12-2004, 06:52 PM   #3
ruwach
Member
 
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73

Original Poster
Rep: Reputation: 15
i checked and ruwach is there. in fact, i can log in as ruwach
i created the users the exact same way in both installs.

i dont get it.

please help
 
Old 06-12-2004, 09:16 PM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
When you said you tried something, please give the exact commands. If you didn't try

chmod -R 755 /home/ruwach

chown -R ruwach:ruwach /home/ruwach

If this doesn't work, please post your /etc/fstab
 
Old 06-12-2004, 09:45 PM   #5
ruwach
Member
 
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73

Original Poster
Rep: Reputation: 15
well i have permission as ruwach to do anything with the /home/ruwach dirrectory. the issue i am dealing with is the inability to move some backed up files from another partition on the drive because my permission is gone.
 
Old 06-12-2004, 10:01 PM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
I think your saying your trying to copy files form /stuff to your home directory? Did you try

chmod -R 755 /stuff

This should allow user ruwach to copy files from /stuff to /home/ruwach and then with them whatever you please. But not give write permission in /stuff for ruwach. For write make the 755 777.

If ruwach is a member of the group users it would be better to 770 and chgrp -R users /stuff
 
Old 06-12-2004, 10:37 PM   #7
ruwach
Member
 
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73

Original Poster
Rep: Reputation: 15
Bingo ! thats what worked. thanks much
 
  


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
USB drive permission zakidad Linux - Newbie 9 06-19-2005 07:16 AM
K3B and drive permission lmanwarren Linux - Software 2 03-30-2005 08:57 PM
write permission for windows drive bruse Mandriva 2 03-01-2005 07:10 AM
cd drive: permission denied aje Slackware 5 11-11-2004 08:50 PM
Got r/w permission to Windows Drive, except... gamb8 Linux - Newbie 4 07-21-2004 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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