Re: Question about directory ownership

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Allegedly, on or about 19 June 2013, Anthony sent:
> The problem is, of course, I've denied root login but don't have
> sufficient privs to login and transfer files under my username.

Sounds like an underlying problem, here, of understanding the
filesystem, more than just having a problem with Apache.

By "denying root logins," do you mean that you can't login as the root
user, in the same way that you would login as yourself?  That's normal,
for graphical logins.  Not normal for command line interfaces.

Don't try logging in as root.  Open up a terminal, and switchover to the
root user, do what changes you need to make, then switch back to
yourself.

For example:

  [tim@server ~]$ su -
  Password: 
  [root@server ~]# chgrp tim /var/www/html
  [root@server ~]# ls -ld /var/www/html
  drwxr-xr-x  2 root tim 4096 Sep 19  2007 /var/www/html/
  [root@server ~]# logout
  [tim@server ~]$ cp testpage.html /var/www/html/
  [tim@server ~]# cd /var/www/html
  [tim@server html]# gvim homepage.html

That's just one approach of giving myself access, of checking that it
worked, then starting to do things in that directory as myself.

The "su" command is a "switch user" command, or "substitute user."  Over
the years the letters have been said to stand for various things, so
concern yourself with what it does, more than what it might stand for.
The dash, after it, gives you the usual shell environment for the user
that you're going to switch to, rather than carrying on using your own
(it's an abbreviation for "-l" or "--login".  And in the absence of
typing in a username after it, too, you'll switch to being the root
user.

i.e. "su -" or "su -l" or "su --login" or "su -l root" all do the same
thing.  See the man file for su.

-- 
[tim@localhost ~]$ uname -rsvp
Linux 3.8.13-100.fc17.x86_64 #1 SMP Mon May 13 13:36:17 UTC 2013 x86_64

All mail to my mailbox is automatically deleted, there is no point
trying to privately email me, I will only read messages posted to the
public lists.

George Orwell's '1984' was supposed to be a warning against tyranny, not
a set of instructions for supposedly democratic governments.



-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux