Click to See Complete Forum and Search --> : hey, i dont have permission to get my stuff !


ruwach
06-12-2004, 06:40 PM
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

linnov
06-12-2004, 07:01 PM
can u not access it as root

invalid user would suggest to me you need to add the account

to mount it auto you would need a line like

/dev/hdb /stuff ext3 defaults 1 1

bwkaz
06-12-2004, 07:13 PM
Permissions are checked by user ID, not username. So if you have created a user named ruwach on your new system, but that user's UID is different, then you still won't have access to the files. You need to make sure the UID is the same also when you create the user.

ruwach
06-12-2004, 07:50 PM
ok, well how do i check what uid ruwach was and what ruwach is now. i set up the accounts on both installs exactly the same way. is there a way to give permissions to a file, directory, drive, etc... for everyone ?

thanks

linnov
06-12-2004, 07:53 PM
look @ your /etc/group file

ruwach
06-12-2004, 09:48 PM
ok, here is what /etc/groups said


root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:ruwach
fax:x:21:
voice:x:22:
cdrom:x:24:ruwach
floppy:x:25:ruwach
tape:x:26:
sudo:x:27:
audio:x:29:ruwach
dip:x:30:
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:ruwach
sasl:x:45:
staff:x:50:
games:x:60:
users:x:100:
nogroup:x:65534:
crontab:x:101:
Debian-exim:x:102:
ruwach:x:1000:

so is there something i can do ?

thanks

linnov
06-12-2004, 09:56 PM
what are the permissions on the /stuff

ruwach
06-12-2004, 10:41 PM
ok here is what it gave me when i did ls -l /stuff
drwxr-xr-x 2 root root
drwxr-xr-x 2 root root

it goes on like that for 7 lines except sometimes the number is a 3 or a 4 and there is a date and the name of the dirrectory in /stuff

so what do i do ?

Suramya
06-12-2004, 11:25 PM
Do a:
chown ruwach directoryname -R

as root to change the owner for all files under directoryname.

ruwach
06-12-2004, 11:38 PM
POW ! that worked.

thanks for all your help.