LinuxQuestions.org
Help answer threads with 0 replies.
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-19-2005, 03:37 AM   #1
jam_newbiew
LQ Newbie
 
Registered: Jan 2005
Posts: 9

Rep: Reputation: 0
regarding permissions


Hi...

Actually i downloaded ymessenger and installed successfully. My OS was Redhat Enterprise Advanced Server. I successfully configured ymessenger as root user. My obligation is only me having an executable permission to ymessenger not to any other user.
that's why i am tried to change the permissions as follows

these are the steps

i check the permission of the executable file "ymessenger" which is in /usr/bin directory.
[root@sssss bin] # ls -ld ymessenger
the o/p of the upper command is as follows lrwxrwxrwx 1 root root 30 Jan 13 16:09 ymessenger -> /opt/ymessenger/ bin/ ymessenger

then i tried to change the permissions of ymessenger file as 744 as follows
[root@sssss bin] # chmod 744 ymessenger
the o/p of upper command is nothing just like
[root@sssss bin] #

that's why i checked the permissions of the file ymessenger using ls -ld command. then i got the same result as above just look....
lrwxrwxrwx 1 root root 30 Jan 13 16:09 ymessenger -> /opt/ymessenger/ bin/ ymessenger

no change in the permission . how to restrict to other user on this file. any help would be appreciate.

thanx in advance.
-jammu kashmir-------
 
Old 01-19-2005, 03:46 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
A few problems here:

First, you should not be running ymessenger as root, root is the administrator of the system and should not be used to do general things, only administration duties. Create a regular user to do things on your system.

Second, you are trying to change permissions on a symlink. The permissions will always remain the same on those, it's the actual binary you need to chmod:
/opt/ymessenger/bin/ymessenger
Is where you should be applying the chmod.

Cool
 
Old 01-19-2005, 04:08 AM   #3
jam_newbiew
LQ Newbie
 
Registered: Jan 2005
Posts: 9

Original Poster
Rep: Reputation: 0
thanx Master C....

but me facing a new problem here. i change the permissions of ymessenger(/opt/ymessenger/bin/ymessenger) back as 755
[root@sssss bin] # chmod 755 ymessenger
after that i tried to execute as another user named xxxxx
[root@sssss bin] # su - xxxxx
[xxxxx@ssss bin]$ ymessenger
then i got the message as follows ..
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Gtk-WARNING **: cannot open display: :0.0
before this experiment this user "xxxxx" succesfully executed this ymessenger but not now.
what's happend me in confused.?
Is there any mistake at first time when i changed the permissions on
"symlilnk"?
Any fatal error occured during changed the permissions on
symlink..?
By the way i don't know what is this " "symlilnk"?..

any help would be appreciate...

jammu
 
Old 01-19-2005, 04:33 AM   #4
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
a symlink (SYMbolic LINK) is similar in function to a Windows shortut, but much more powerful. Think of it as a placeholder, that points to the original file.
 
Old 01-19-2005, 05:12 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Depending on how your distro sets stuff up, you can't execute graphical applications as another user in the existing users x session. So:
You are in X as root (generally, IMO, considered a no no anyway), you then open an xterm, su to another user, and attempt to open a graphical application as that user, you will get something similar to the error you have above.

Open an x session for that user:
CTRL ALT F2
Login as that user, then:
startx -- :1

There are plenty of other alternatives, this is the one I'd use personally.

Cool
 
Old 01-19-2005, 05:43 AM   #6
jam_newbiew
LQ Newbie
 
Registered: Jan 2005
Posts: 9

Original Poster
Rep: Reputation: 0
first of all thanx to scuzzmann who gave the defintion of symlink...

thanx Master C ...
I proceeded u ..but after typing the startx -- :1
me getting the messages like ...

"Owner of /tmp/orbit - xxxxx(user name) is not current user"

I got a lot of messages with their process numbers but i didn't remeber all the messages .....all messages like in a similar fashion which i mentioned above as an example...me not understand what is this? any explanation regarding this error would B appreciated..

thanx in advance..
jammu
 
Old 01-21-2005, 12:57 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You got me, I have no idea what orbit is, or why it's giving you errors.

You can log out of the graphical interface that root is logged in with, and then log in with your regular user.

Cool
 
Old 01-21-2005, 01:34 AM   #8
Mr.McCormick
LQ Newbie
 
Registered: Aug 2004
Location: Redford, MI
Distribution: lfs 6.0-testing-20040913/ blfs 5.1 modifyed
Posts: 10

Rep: Reputation: 0
just to be curious what distro do you have and how did you add your basic user
 
  


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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
Permissions jymmi Linux - Newbie 3 04-14-2005 11:43 PM
Permissions help reddog64 Linux - Newbie 1 04-22-2004 05:23 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM

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

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