Re: chmod 666 ///

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

 



On Fri, 2008-04-04 at 08:27 -0700, Bruce Hyatt wrote:
> > > I carelessly executed "chmod 666 ///" from a terminal as su 
> > > in a user account.
> 
> --- Patrick O'Callaghan <pocallaghan@xxxxxxxxx> wrote:
> 
> > Possibly all he needs to get X going is 'chmod +t /tmp'.
> 
> I tried this first and it didn't work.
> 
> > On Thu, 2008-04-03 at 13:12 -0400, Andrew Parker wrote:
> > > 
> > > rpm -qa | xargs rpm ----setperms --setugids
> 
> This returned "----setperms: unknown option"
> So I tried it using "--setperms" and it returned
> "chmod: invalid mode string: '[various 7-digit numbers]'"
> It seemed to be looping through this with different 7 digit
> numbers coming back. The mode string indicates how to set the
> permissions.
> 
> How would chmod interpret ///? All files and directories 3
> layers deep?

In a Unix (and Linux) pathname any sequence of one or more / characters
collapses into a single /.

Thus /// is exactly the same as / so your chmod affects only files in
the root directory (and not those beneath it). Which is why I
thought /tmp might the cause of the problem.

poc

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux