Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
I am running Red Had 9. I am trying to run tar to extract a tar file. When I do, I get many messages saying "Cannot open: No such file or directory" I am running this command from the directory where the tar file is located:
The dash is optional. First thing would be to make sure that you are in the directory or giving the full path (check) and that the filename is spelled correctly. (?) Not found is odd, though. I might say you maybe downloaded it as root (or whatever) and are now trying to access it as user, but that should give a different error message. Next, I'd run 'file' on it in case it isn't really a tar.gz, but that should also give a different error. Same thing regarding whether you have tar and it's on your path - wrong message, but maybe.
I'm guessing it's a typo. Are you using tab-completion? Getting the case right? The file does show in an 'ls'? Strange.
I have made sure it is not a typo. I did, however, download it as root, then tried to extract it as another user. So, I deleted the file, then tried to cp it from the cdrom again as a different user. It said "permission denied". Is there a way to give that user the right permissions to do that?
Distribution: Gentoo 2004.2, Slackware 10, Windows XP, Windows 2003 Server
Posts: 348
Rep:
it goes like this there are a user and group permissions on a object.. when you do ls -l you see:
r--rwxr-x bob root
The first three characters (r) give read access to bob
then the second three characters (rwx) give read, write, execute access to root
the last three characters (r-x) give access to all other users (and there is read, execute access)
they way to change those two users is to use the "chown" command and then change file permissions with chmod
chown gschrade <file>
chmod u+rwx <file>
This changes the file to look like this
rwxr--r-x gschrade root
and your file will work, suggest ya go online and search "chmod tutorial" to learn more bout this stuff
btw the chmod 777 is an old way of doing this, use the rwx way cuz its easier to understand
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.