Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
luap
n00b
n00b


Joined: 08 Apr 2003
Posts: 54
Location: atl,ga,us,na,wh,earth.

PostPosted: Thu May 01, 2003 1:51 am    Post subject: problem with permissions Reply with quote

hello,
i am having a problem or 3 grasping the concept of ,i think, permissions.
hopefully experienced users will show mercy on a puzzled pre-newb.
here is part of my fstab:

/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,user 0 0
proc /proc proc defaults 0 0
/dev/hde3 /mnt/redhat9 ext3 auto,user,
/dev/hdb2 /mnt/rh8 ext3 auto,user,

i can get a cd mounted, i can access folders and files. but when i try to run a set up script, i get the following:
paul@badpenguin paul $ cd /mnt/cdrom/linux/office60
paul@badpenguin office60 $ ./setup
-bash: ./setup: Permission denied

i tried as root:
root@badpenguin office60 # ./setup
bash: ./setup: Permission denied

and when i try to access the home folders of hde3 and hdb2(thru nautilus) i get

You do not have the permissions necessary to view the contents of "paul".

first question-what do i need to do to get full functionality out of a cd rom drive? to be able to install from a cd?
second queston- what permissions do i need to set to access files from my (admitedly non gentoo) other linux installs?
i know this isnt really a gentoo issue, its a ignorant new user issue.
heck, while i'm here, is it at all possible to set the desktop clock to show normal 12 hr time?
i've read lots of stuff, set the symlink from zoneinfo to localtime, and set rc.conf. the clock
on the gdm logn screen shows correct time, but the desktop clock shows (correct) military time.

i have tried to read up on permissions etc, but i honestly dont get it.
Back to top
View user's profile Send private message
snkmoorthy
Guru
Guru


Joined: 19 Nov 2002
Posts: 376

PostPosted: Thu May 01, 2003 5:49 am    Post subject: Reply with quote

with regards to not being able to execute a "setup" program you should look at the permissions of the setup file like rwxr------- etc.

remember if it is a windows executable it won't run and you will get a "permission denied" error not matter who executes it. same thing for a shell script say shell.sh which doesn;t have the execute bit set like rw-r--r--

as far as reading mounted partitions see the permission of the mount point ie../mnt/rh8 ...

for the clock, assuming you are using GNOME, rightclick on the clock and select 12hr time format. :roll:
Back to top
View user's profile Send private message
luap
n00b
n00b


Joined: 08 Apr 2003
Posts: 54
Location: atl,ga,us,na,wh,earth.

PostPosted: Fri May 02, 2003 3:17 am    Post subject: Reply with quote

hello,
thanks for your response.
a doh! and a duh to me for missing the gnome clock setting.

i still dont quite get permissions, but i'm working at it.

i did get my staroffice installed, by copying the install files to my
home folder.
Back to top
View user's profile Send private message
eNTi
Veteran
Veteran


Joined: 20 Oct 2002
Posts: 1011
Location: Salzburg, Austria

PostPosted: Fri May 02, 2003 3:33 am    Post subject: Re: problem with permissions Reply with quote

luap wrote:

/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,user 0 0

try:

/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto, ro, users, exec 0 0
_________________
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Back to top
View user's profile Send private message
dice
Guru
Guru


Joined: 21 Apr 2002
Posts: 577

PostPosted: Fri May 02, 2003 4:01 am    Post subject: Reply with quote

As far as reading the directories on your redhat partition you'll have to make sure that your user account on your Gentoo partition has the same UID as your user on the RedHat partition. First off completely log out of all your shells, running X sessions, etc. then, as root, open up /etc/passwd in Your Favorite Text Editor and check out the line which corresponds to your user account. Here's mine:

Quote:
dice:x:1000:100::/home/dice:/bin/bash


That 1000 (after the second colon) is where your UID is set. You want to compare that UID with the one that's stored in the passwd file on your RedHat partition. If they are different change the one on your Gentoo partition so that it matches the RedHat one. Make sure that no other users on your Gentoo partition have this UID first! Once you've done that (still as root) execute chown -R username /home/username which will set all the files in your home directory so that they're using the new UID. After this you should be able to log in as your user account and access your home directory on the RH partition.
Back to top
View user's profile Send private message
luap
n00b
n00b


Joined: 08 Apr 2003
Posts: 54
Location: atl,ga,us,na,wh,earth.

PostPosted: Sat May 03, 2003 3:46 am    Post subject: Reply with quote

hello ,
thanks folks for the help. got the cd-r set so i can use it now, and can now get to my other linux home directories. by the way thanks for the examples and the step thru on setting user uid.
a little more practice setting permissions, and reading , i should get the hang.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum