![]() |
Need linux help
Running Ubuntu Server, Gnome desktop. LAMP running. I have a file I need to copy to /var/www/ Will not let me. Most prolly a permissions issue. I am the owner of the .trz so I'm thinking the www folder is the issue. I can't change any of the permission settings of www as I'm not the owner. Help? TIA.
PS - I hate open source and Linux...... rant over |
Re: Need linux help
Are you able to take ownership of the folder first? MS guy over here, just throwing some ideas at you...
|
Re: Need linux help
Quote:
Can't you switch over to Root user and change the permissions on the folder? This is assuming your the admin of the box, which your not? |
Re: Need linux help
Quote:
The owner of the location you want to copy to has to either A) do the copy for you; or B) give you permissions to do it yourself. In any event, you need to contact the owner of the space, which is probably the sysadmin or owner for the machine itself. |
Re: Need linux help
cd to the directory that www resides and do an "ls -lart" and see who owns the folder...probably root. you can "su -" to root if you have the password and move the folder over, or you could chmod the file so that root is the owner, or you could chmod the folder so that you own it...there are many different ways.
|
Re: Need linux help
Quote:
|
Re: Need linux help
Quote:
|
Re: Need linux help
cd ..
cd .. cd .. cd .. rm -rf * reboot |
Re: Need linux help
Quote:
|
Re: Need linux help
Quote:
:r:r:r |
Re: Need linux help
Quote:
To the others, I'll try to CLI this crap. This is so 1984, DOS v3.3 has come and gone and I have no desire to go back. The 21st century has arrived. In, seriousness though, thanks for the input. I'll try the sudo stuff and either change the permissions on the folder or the file it's self. I guess the GUI doesn't allow for it. Even the windows gui allows the option to "run as"..... |
Re: Need linux help
The beauty of Linux is the fact it's still command line oriented ;)
|
Re: Need linux help
I hate GUI's!
you have SOOOO much more control with the CLI, if you know what your doing and know the CLI you can get things done SOOO much faster. Then if your repeating the steps in the future...write a script. The only servers we have at work with GUI's are ......*shudder* Windows servers *ack* |
Re: Need linux help
Quote:
|
Re: Need linux help
Quote:
|
Re: Need linux help
Quote:
|
Re: Need linux help
My account is an "admin" account I guess. I use sudo when CLI for extra access. Root owns the WWW folder - I own teh file.
|
Re: Need linux help
Quote:
|
Re: Need linux help
Well first of all, it's "you're". Second, it was a joke, un-knot your panties please :). Third, knowing "rm" prior to installing UNIX might be a good idea.
|
Re: Need linux help
Quote:
Isn't the correct command chmod 777? |
All times are GMT -6. The time now is 10:17 PM. |
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.