Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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"?..
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.
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.
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..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.